mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* 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.
This commit is contained in:
parent
2fdfe0796e
commit
4e23f2ba8b
1 changed files with 3 additions and 3 deletions
|
|
@ -23,9 +23,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#undef read
|
#undef read
|
||||||
#undef write
|
#undef write
|
||||||
#undef open
|
#undef open
|
||||||
#ifdef close
|
|
||||||
#undef close
|
#undef close
|
||||||
#endif
|
#undef signal
|
||||||
|
|
||||||
|
|
||||||
#if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
|
#if !defined(HAVE_SOCKETS) && !defined(HAVE_SYSVIPC)
|
||||||
|
|
@ -120,7 +119,8 @@ main (argc, argv)
|
||||||
strcat (server.sun_path, "/.emacs_server");
|
strcat (server.sun_path, "/.emacs_server");
|
||||||
#endif
|
#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]);
|
fprintf (stderr, "%s: ", argv[0]);
|
||||||
perror ("connect");
|
perror ("connect");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue