SCCS-vsn: sbin/shutdown/shutdown.c 5.5
#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>
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)
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;