=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/newsyslog/newsyslog.c,v retrieving revision 1.30 retrieving revision 1.30.2.2 diff -u -r1.30 -r1.30.2.2 --- src/usr.bin/newsyslog/newsyslog.c 1999/11/11 22:24:14 1.30 +++ src/usr.bin/newsyslog/newsyslog.c 2000/10/06 21:16:16 1.30.2.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.30 1999/11/11 22:24:14 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.30.2.2 2000/10/06 21:16:16 jason Exp $ */ /* * Copyright (c) 1999 Todd C. Miller @@ -88,7 +88,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.30 1999/11/11 22:24:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.30.2.2 2000/10/06 21:16:16 jason Exp $"; #endif /* not lint */ #ifndef CONF @@ -229,6 +229,7 @@ pl->file = q->pidfile; pl->signal = q->signal; } + pl++; } } q = q->next; @@ -806,7 +807,7 @@ fp = fopen(fname, "r"); if (fp == NULL) { - warn(fname); + warn("%s", fname); goto cleanup; } #ifdef QUAD_OFF_T @@ -833,7 +834,7 @@ /* Open logfile, seek. */ fp = fopen(log, "r"); if (fp == NULL) { - warn(log); + warn("%s", log); goto cleanup; } fseek(fp, osize, SEEK_SET); @@ -863,7 +864,7 @@ /* Reopen for writing and update file. */ fp = fopen(fname, "w"); if (fp == NULL) { - warn(fname); + warn("%s", fname); goto cleanup; } #ifdef QUAD_OFF_T