lint
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 13 May 1986 08:50:55 +0000 (00:50 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 13 May 1986 08:50:55 +0000 (00:50 -0800)
SCCS-vsn: sbin/shutdown/shutdown.c 5.5

usr/src/sbin/shutdown/shutdown.c

index 176c6b1..70a094a 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)shutdown.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)shutdown.c 5.5 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -110,6 +110,8 @@ main(argc,argv)
        int h, m;
        int first;
        FILE *termf;
        int h, m;
        int first;
        FILE *termf;
+       extern char *strcat();
+       extern uid_t geteuid();
 
        shutter = getlogin();
        if (shutter == 0)
 
        shutter = getlogin();
        if (shutter == 0)
@@ -158,8 +160,8 @@ main(argc,argv)
        argc--, argv++;
        nolog2[0] = '\0';
        while (argc-- > 0) {
        argc--, argv++;
        nolog2[0] = '\0';
        while (argc-- > 0) {
-               strcat(nolog2, " ");
-               strcat(nolog2, *argv++);
+               (void) strcat(nolog2, " ");
+               (void) strcat(nolog2, *argv++);
        }
        m = ((stogo = sdt - nowtime) + 30)/60;
        h = m/60; 
        }
        m = ((stogo = sdt - nowtime) + 30)/60;
        h = m/60;