# HG changeset patch # User Roland McGrath # Date 781764959 0 # Node ID 5d8165cdb0d8493850f565728b500d880c7b4e51 # Parent c40de6b1b4f98b860e01a22d247370af2c584c8a [! SYSVIPC] (main): Fix uses of FD_* macros: fd_set arg is a pointer, descriptor arg comes first. diff -r c40de6b1b4f9 -r 5d8165cdb0d8 lib-src/emacsserver.c --- a/lib-src/emacsserver.c Mon Oct 10 03:26:28 1994 +0000 +++ b/lib-src/emacsserver.c Mon Oct 10 04:55:59 1994 +0000 @@ -1,5 +1,5 @@ /* Communication subprocess for GNU Emacs acting as server. - Copyright (C) 1986, 1987, 1992 Free Software Foundation, Inc. + Copyright (C) 1986, 1987, 1992, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -152,12 +152,12 @@ for (;;) { SELECT_TYPE rmask; - FD_ZERO (rmask); - FD_SET (rmask, 0); - FD_SET (rmask, s); + FD_ZERO (&rmask); + FD_SET (0, &rmask); + FD_SET (s, &rmask); if (select (s + 1, &rmask, 0, 0, 0) < 0) perror ("select"); - if (FD_ISSET (rmask, s)) /* client sends list of filenames */ + if (FD_ISSET (s, &rmask)) /* client sends list of filenames */ { fromlen = sizeof (fromunix); fromunix.sun_family = AF_UNIX; @@ -210,7 +210,7 @@ fflush (infile); continue; } - else if (FD_ISSET (rmask, 0)) /* emacs sends codeword, fd, and string message */ + else if (FD_ISSET (0, &rmask)) /* emacs sends codeword, fd, and string message */ { /* Read command codeword and fd */ clearerr (stdin);