# HG changeset patch # User Jim Blandy # Date 739629691 0 # Node ID aacca1901f7350843fd631088785273b4f950447 # Parent e425c30482839738893e5f61bf4caf9877fcc150 * 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. diff -r e425c3048283 -r aacca1901f73 lib-src/emacsserver.c --- 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)