aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-01 07:43:30 +0000
committerRichard M. Stallman1994-08-01 07:43:30 +0000
commitae24c599ebb49571eabe381237fe9a3d3ad4a84f (patch)
tree6c838ff7cd7a461d237ef8b50f6faa1bb8e28f7f /lib-src
parent3cfb886e3dfd1b6c645420a7eb912c4fd8def9ef (diff)
downloademacs-ae24c599ebb49571eabe381237fe9a3d3ad4a84f.tar.gz
emacs-ae24c599ebb49571eabe381237fe9a3d3ad4a84f.zip
(main): Add casts to avoid warnings.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsserver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c
index 6a6edf6050b..fe95381c8f9 100644
--- a/lib-src/emacsserver.c
+++ b/lib-src/emacsserver.c
@@ -130,13 +130,14 @@ main ()
130 for (;;) 130 for (;;)
131 { 131 {
132 int rmask = (1 << s) + 1; 132 int rmask = (1 << s) + 1;
133 if (select (s + 1, &rmask, 0, 0, 0) < 0) 133 if (select (s + 1, (fd_set *)&rmask, 0, 0, 0) < 0)
134 perror ("select"); 134 perror ("select");
135 if (rmask & (1 << s)) /* client sends list of filenames */ 135 if (rmask & (1 << s)) /* client sends list of filenames */
136 { 136 {
137 fromlen = sizeof (fromunix); 137 fromlen = sizeof (fromunix);
138 fromunix.sun_family = AF_UNIX; 138 fromunix.sun_family = AF_UNIX;
139 infd = accept (s, (struct sockaddr *) &fromunix, &fromlen); /* open socket fd */ 139 infd = accept (s, (struct sockaddr *) &fromunix,
140 (size_t *) &fromlen);
140 if (infd < 0) 141 if (infd < 0)
141 { 142 {
142 if (errno == EMFILE || errno == ENFILE) 143 if (errno == EMFILE || errno == ENFILE)