changeset 3595:e10f7473d2e3

* 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. * emacsclient.c (main): Same.
author Jim Blandy <jimb@redhat.com>
date Wed, 09 Jun 1993 12:45:26 +0000
parents aacca1901f73
children 9137e78cc171
files lib-src/emacsclient.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Wed Jun 09 12:41:31 1993 +0000
+++ b/lib-src/emacsclient.c	Wed Jun 09 12:45:26 1993 +0000
@@ -23,9 +23,8 @@
 #undef read
 #undef write
 #undef open
-#ifdef close
 #undef close
-#endif
+#undef signal
 
 
 #if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
@@ -120,7 +119,8 @@
   strcat (server.sun_path, "/.emacs_server");
 #endif
 
-  if (connect (s, &server, strlen (server.sun_path) + 2) < 0)
+  if (connect (s, (struct sockaddr *) &server, strlen (server.sun_path) + 2)
+      < 0)
     {
       fprintf (stderr, "%s: ", argv[0]);
       perror ("connect");