From 3ce6c35745dec7bd16c368be854fbf2c85eafa40 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 2 Dec 2001 12:26:18 +0000 Subject: WARNS=2 fixup. --- usr.bin/at/at.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.bin/at/at.c') diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 391dd0ecd9e9..af671daad0c9 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -98,7 +98,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ -char *no_export[] = +const char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" } ; @@ -122,10 +122,11 @@ static void alarmc(int signo); static char *cwdname(void); static void writefile(time_t runtimer, char queue); static void list_jobs(void); +static long nextjob(void); /* Signal catching functions */ -static void sigc(int signo) +static void sigc(int signo __unused) { /* If the user presses ^C, remove the spool file and exit */ @@ -139,7 +140,7 @@ static void sigc(int signo) _exit(EXIT_FAILURE); } -static void alarmc(int signo) +static void alarmc(int signo __unused) { char buf[1024]; @@ -360,7 +361,7 @@ writefile(time_t runtimer, char queue) eqp = *atenv; else { - int i; + size_t i; for (i=0; i