Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bootp Fix pluralization in a syslog message.



details:   https://anonhg.NetBSD.org/src/rev/7d09d5aee50a
branches:  trunk
changeset: 536578:7d09d5aee50a
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Sep 18 23:16:13 2002 +0000

description:
Fix pluralization in a syslog message.

diffstat:

 usr.sbin/bootp/bootpd/bootpd.c   |  7 ++++---
 usr.sbin/bootp/bootpgw/bootpgw.c |  7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 661a2c475079 -r 7d09d5aee50a usr.sbin/bootp/bootpd/bootpd.c
--- a/usr.sbin/bootp/bootpd/bootpd.c    Wed Sep 18 23:13:39 2002 +0000
+++ b/usr.sbin/bootp/bootpd/bootpd.c    Wed Sep 18 23:16:13 2002 +0000
@@ -22,7 +22,7 @@
 
 #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 @@
                }
                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);
diff -r 661a2c475079 -r 7d09d5aee50a usr.sbin/bootp/bootpgw/bootpgw.c
--- a/usr.sbin/bootp/bootpgw/bootpgw.c  Wed Sep 18 23:13:39 2002 +0000
+++ b/usr.sbin/bootp/bootpgw/bootpgw.c  Wed Sep 18 23:16:13 2002 +0000
@@ -27,7 +27,7 @@
 
 #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 @@
                        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);



Home | Main Index | Thread Index | Old Index