Mercurial > hg > xemacs-beta
diff lib-src/gnuclient.c @ 78:c7528f8e288d r20-0b34
Import from CVS: tag r20-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:05:42 +0200 |
parents | 131b0175ea99 |
children | 360340f9fd5f |
line wrap: on
line diff
--- a/lib-src/gnuclient.c Mon Aug 13 09:05:11 2007 +0200 +++ b/lib-src/gnuclient.c Mon Aug 13 09:05:42 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 */