Commit 4e23f2ba authored by Jim Blandy's avatar Jim Blandy
Browse files

* 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.
parent 2fdfe079
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment