Mercurial > hg > xemacs-beta
diff lib-src/gnuclient.c @ 12:bcdc7deadc19 r19-15b7
Import from CVS: tag r19-15b7
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:48:16 +0200 |
parents | 376386a54a3c |
children | ec9a17fef872 |
line wrap: on
line diff
--- a/lib-src/gnuclient.c Mon Aug 13 08:47:56 2007 +0200 +++ b/lib-src/gnuclient.c Mon Aug 13 08:48:16 2007 +0200 @@ -52,7 +52,8 @@ #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && \ !defined(INTERNET_DOMAIN_SOCKETS) -main () +int +main (int argc, char *argv[]) { fprintf (stderr, "Sorry, the Emacs server is only " "supported on systems that have\n"); @@ -126,8 +127,8 @@ } /* filename_expand */ -void -main (int argc, char **argv) +int +main (int argc, char *argv[]) { int starting_line = 1; /* line to start editing at */ char command[MAXPATHLEN+50]; /* emacs command buffer */ @@ -330,7 +331,7 @@ disconnect_from_server (s, FALSE); #endif /* !SYSV_IPC */ - exit (0); + return 0; } /* main */