predeclare finish; fix for ANSI C
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 05:07:23 +0000 (21:07 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 27 Dec 1987 05:07:23 +0000 (21:07 -0800)
SCCS-vsn: sbin/shutdown/shutdown.c 5.7

usr/src/sbin/shutdown/shutdown.c

index 44c26b4..f8ce995 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)shutdown.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)shutdown.c 5.7 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -48,6 +48,7 @@ char  hostname[MAXHOSTNAMELEN];
 
 int    timeout();
 time_t getsdt();
 
 int    timeout();
 time_t getsdt();
+void   finish();
 
 extern char *ctime();
 extern struct tm *localtime();
 
 extern char *ctime();
 extern struct tm *localtime();
@@ -397,6 +398,7 @@ nolog(sdt)
        }
 }
 
        }
 }
 
+void
 finish()
 {
        (void) signal(SIGTERM, SIG_IGN);
 finish()
 {
        (void) signal(SIGTERM, SIG_IGN);