Mercurial > emacs
changeset 8410:bbe98fdd1615
(main): Add casts to avoid warnings.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 01 Aug 1994 07:43:30 +0000 |
parents | 4a27ca4bcdf4 |
children | 9a68cba600fc |
files | lib-src/emacsserver.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/emacsserver.c Mon Aug 01 07:15:34 1994 +0000 +++ b/lib-src/emacsserver.c Mon Aug 01 07:43:30 1994 +0000 @@ -130,13 +130,14 @@ 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)