diff options
author | Jim Blandy <jimb@redhat.com> | 1993-06-09 12:45:26 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-06-09 12:45:26 +0000 |
commit | 4e23f2ba8b96c1989c01dbfe772a974b54ed3d12 (patch) | |
tree | 39f6a6a4af2c8aa6366119fce95033a1722e1764 /lib-src/emacsclient.c | |
parent | 2fdfe0796e19aa31a7082aa705feb63086fb22e6 (diff) | |
download | emacs-4e23f2ba8b96c1989c01dbfe772a974b54ed3d12.tar.gz |
* 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.
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index e3c63b6abb0..ccf0d05d1d5 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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"); |