diff lib-src/gnudoit.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 131b0175ea99
line wrap: on
line diff
--- a/lib-src/gnudoit.c	Mon Aug 13 08:47:56 2007 +0200
+++ b/lib-src/gnudoit.c	Mon Aug 13 08:48:16 2007 +0200
@@ -35,7 +35,8 @@
 #include <unistd.h>
 
 #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");
   fprintf (stderr,"Unix Domain sockets, Internet Domain sockets or System V IPC.\n");
@@ -43,10 +44,8 @@
 } /* main */
 #else /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */
 
-void
-main(argc,argv)
-     int argc;
-     char *argv[];
+int
+main(int argc,char *argv[])
 {
   int qflg = 0;					/* don't wait around for 
 						 * gnu emacs to eval cmd */
@@ -146,7 +145,7 @@
     disconnect_from_server(s,!qflg);
 #endif /* !SYSV_IPC */
 
-  exit(0);
+  return 0;
 
 } /* main */