Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS update: Vanilla/robotd



Date:	Sunday March 5, 2000 @ 10:09
Author:	xyzzy

Update of /home/netrek/cvsroot/Vanilla/robotd
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv10204

Modified Files:
	main.c parse.c 
Log Message:
Clean up some function prototypes.


****************************************

Index: Vanilla/robotd/main.c
diff -u Vanilla/robotd/main.c:1.1 Vanilla/robotd/main.c:1.2
--- Vanilla/robotd/main.c:1.1	Tue Feb 22 16:49:30 2000
+++ Vanilla/robotd/main.c	Sun Mar  5 10:09:53 2000
@@ -26,7 +26,7 @@
 #define TIMEOUT1		50
 #define TIMEOUT2		50
 
-char	revision[] = "$Revision: 1.1 $";
+char	revision[] = "$Revision: 1.2 $";
 
 static   int    first = 1;
 jmp_buf         env;
@@ -41,7 +41,8 @@
    int             usage = 0;
    int             err = 0;
    char           *name, *ptr, *cp, *rindex();
-   int             reaper(), dcore(), kill_rwatch(), exitRobot(), resetRobot();
+   int             dcore(), resetRobot();
+   void		   reaper(int), kill_rwatch(int), exitRobot(int);
    int             passive = 0;
    char           *defaultsFile = NULL;
    register       i;
@@ -488,7 +489,7 @@
    exit(0);
 }
 
-reaper()
+void reaper(int sig)
 {
 #ifdef hpux
    wait((int *) 0);
@@ -496,12 +497,10 @@
    /* SUPRESS 530 */
    while (wait3((union wait *) 0, WNOHANG, NULL) > 0);
 #endif				/* hpux */
-   (void) signal(SIGCHLD,reaper);
+   signal(SIGCHLD, reaper);
 }
 
-exitRobot(sig)
-   
-   int	sig;
+void exitRobot(int sig)
 {
    fprintf(stderr, "exiting ...");
    fflush(stderr);
@@ -540,7 +539,7 @@
    abort();
 }
 
-kill_rwatch()
+void kill_rwatch(int sig)
 {
    if(rsock != -1){
       shutdown(rsock, 2);
Index: Vanilla/robotd/parse.c
diff -u Vanilla/robotd/parse.c:1.1 Vanilla/robotd/parse.c:1.2
--- Vanilla/robotd/parse.c:1.1	Tue Feb 22 16:49:30 2000
+++ Vanilla/robotd/parse.c	Sun Mar  5 10:09:53 2000
@@ -248,7 +248,7 @@
 init_plarray()
 {
    register	i;
-   char 	*short_name(), *strdup();
+   char 	*short_name();
    int		plcmp_long();
 
    mprintf("initializing planets\n");