summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-08-01 07:43:30 +0000
committerRichard M. Stallman <rms@gnu.org>1994-08-01 07:43:30 +0000
commit048ea90301847e8585e14cfbd4e9100decd1f622 (patch)
treee2ca848b74eeb646d423bb4effb33e64c72f50f3 /lib-src
parent130c5cdd7fcac385c4ea2e0377645aa40e9471e3 (diff)
downloademacs-048ea90301847e8585e14cfbd4e9100decd1f622.tar.gz
(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 ()
for (;;)
{
int rmask = (1 << s) + 1;
- if (select (s + 1, &rmask, 0, 0, 0) < 0)
+ if (select (s + 1, (fd_set *)&rmask, 0, 0, 0) < 0)
perror ("select");
if (rmask & (1 << s)) /* client sends list of filenames */
{
fromlen = sizeof (fromunix);
fromunix.sun_family = AF_UNIX;
- infd = accept (s, (struct sockaddr *) &fromunix, &fromlen); /* open socket fd */
+ infd = accept (s, (struct sockaddr *) &fromunix,
+ (size_t *) &fromlen);
if (infd < 0)
{
if (errno == EMFILE || errno == ENFILE)