changeset 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 e425c3048283
children e10f7473d2e3
files lib-src/emacsserver.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)