summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-10-10 04:55:59 +0000
committerRoland McGrath <roland@gnu.org>1994-10-10 04:55:59 +0000
commit063c404bea2d3bc56f2077e9daba616d3afd4cbb (patch)
tree9493ed4f1a3755d90d96842a7d6da24cbb3402f7 /lib-src
parentb95c2b8767b0d5b5f62147d96856a796132bcfe7 (diff)
downloademacs-063c404bea2d3bc56f2077e9daba616d3afd4cbb.tar.gz
[! SYSVIPC] (main): Fix uses of FD_* macros: fd_set arg is a pointer,
descriptor arg comes first.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsserver.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c
index b6d3abbd032..1c8fc1d15ba 100644
--- a/lib-src/emacsserver.c
+++ b/lib-src/emacsserver.c
@@ -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 @@ main ()
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 @@ main ()
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);