From a55fc6a97340fb8a42eab82f97f1693971e75567 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 30 Jun 2013 05:00:15 +0000 Subject: Simplify 'server' definition and use. --- src/hyper/spadint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hyper/spadint.c') diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c index d31ed6da..7699a653 100644 --- a/src/hyper/spadint.c +++ b/src/hyper/spadint.c @@ -1,7 +1,7 @@ /* Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2010, Gabriel Dos Reis. + Copyright (C) 2007-2013, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -350,8 +350,8 @@ accept_menu_server_connection(HyperDocPage *page) continue; } - if (server[1].socket > 0 && FD_ISSET(server[1].socket, &rd)) { - sock = accept_menu_connection(server + 1); + if (server.socket > 0 && FD_ISSET(server.socket, &rd)) { + sock = accept_menu_connection(&server); if (sock == 0) return; if (sock->purpose == InterpWindow) { -- cgit v1.2.3