Mercurial > emacs
diff lib-src/emacsserver.c @ 3594:aacca1901f73
* emacsserver.c (main): When we're passing a `struct sockaddr_un'
to bind or accept, cast the pointer, to avoid warnings on systems
which declare prototypes for this.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Wed, 09 Jun 1993 12:41:31 +0000 |
| parents | 5ee985ad8340 |
| children | 57e52e312188 |
line wrap: on
line diff
--- a/lib-src/emacsserver.c Wed Jun 09 12:39:16 1993 +0000 +++ b/lib-src/emacsserver.c Wed Jun 09 12:41:31 1993 +0000 @@ -108,7 +108,7 @@ unlink (server.sun_path); #endif - if (bind (s, &server, strlen (server.sun_path) + 2) < 0) + if (bind (s, (struct sockaddr *) &server, strlen (server.sun_path) + 2) < 0) { perror ("bind"); exit (1); @@ -135,7 +135,7 @@ { fromlen = sizeof (fromunix); fromunix.sun_family = AF_UNIX; - infd = accept (s, &fromunix, &fromlen); /* open socket fd */ + infd = accept (s, (struct sockaddr *) &fromunix, &fromlen); /* open socket fd */ if (infd < 0) { if (errno == EMFILE || errno == ENFILE)
