* emacsserver.c (main): When we're passing a `struct sockaddr_un'
authorJim Blandy <jimb@redhat.com>
Wed, 9 Jun 1993 12:45:26 +0000 (12:45 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 9 Jun 1993 12:45:26 +0000 (12:45 +0000)
to bind or accept, cast the pointer, to avoid warnings on systems
which declare prototypes for this.
* emacsclient.c (main): Same.

lib-src/emacsclient.c

index e3c63b6..ccf0d05 100644 (file)
@@ -23,9 +23,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef read
 #undef write
 #undef open
-#ifdef close
 #undef close
-#endif
+#undef signal
 
 
 #if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
@@ -120,7 +119,8 @@ main (argc, argv)
   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");