From: Richard M. Stallman Date: Mon, 1 Aug 1994 07:43:30 +0000 (+0000) Subject: (main): Add casts to avoid warnings. X-Git-Tag: emacs-19.34~7443 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae24c599ebb49571eabe381237fe9a3d3ad4a84f;p=emacs.git (main): Add casts to avoid warnings. --- 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)