Fix pluralization in a syslog message.

This commit is contained in:
mycroft 2002-09-18 23:16:13 +00:00
parent c563d4c7c3
commit 9b3fb0ad17
2 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,7 @@ SOFTWARE.
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: bootpd.c,v 1.15 2002/09/18 23:13:39 mycroft Exp $");
__RCSID("$NetBSD: bootpd.c,v 1.16 2002/09/18 23:16:13 mycroft Exp $");
#endif
/*
@ -510,8 +510,9 @@ main(int argc, char **argv)
}
if (nfound == 0) {
if (debug > 1)
report(LOG_INFO, "exiting after %d minutes of inactivity",
actualtimeout / 60000);
report(LOG_INFO, "exiting after %d minute%s of inactivity",
actualtimeout / 60000,
actualtimeout == 60000 ? "" : "s");
exit(0);
}
ra_len = sizeof(recv_addr);

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: bootpgw.c,v 1.10 2002/09/18 23:13:40 mycroft Exp $");
__RCSID("$NetBSD: bootpgw.c,v 1.11 2002/09/18 23:16:14 mycroft Exp $");
#endif
/*
@ -440,8 +440,9 @@ main(int argc, char **argv)
continue;
}
if (nfound == 0) {
report(LOG_INFO, "exiting after %d minutes of inactivity",
actualtimeout / 60000);
report(LOG_INFO, "exiting after %d minute%s of inactivity",
actualtimeout / 60000,
actualtimeout == 60000 ? "" : "s");
exit(0);
}
ra_len = sizeof(clnt_addr);