Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/inetd fix printf formats (intmax -> j)



details:   https://anonhg.NetBSD.org/src/rev/83a54fa41494
branches:  trunk
changeset: 1023205:83a54fa41494
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 29 11:43:25 2021 +0000

description:
fix printf formats (intmax -> j)

diffstat:

 usr.sbin/inetd/Makefile |   4 +++-
 usr.sbin/inetd/inetd.c  |  12 ++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r b9026127c680 -r 83a54fa41494 usr.sbin/inetd/Makefile
--- a/usr.sbin/inetd/Makefile   Sun Aug 29 10:18:17 2021 +0000
+++ b/usr.sbin/inetd/Makefile   Sun Aug 29 11:43:25 2021 +0000
@@ -1,8 +1,10 @@
 #      from: @(#)Makefile      8.1 (Berkeley) 6/6/93
-#      $NetBSD: Makefile,v 1.25 2021/08/29 09:54:18 christos Exp $
+#      $NetBSD: Makefile,v 1.26 2021/08/29 11:43:25 christos Exp $
 
 .include <bsd.own.mk>
 
+COPTS+=-m32
+
 USE_FORT?= yes # network server
 
 PROG=  inetd
diff -r b9026127c680 -r 83a54fa41494 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c    Sun Aug 29 10:18:17 2021 +0000
+++ b/usr.sbin/inetd/inetd.c    Sun Aug 29 11:43:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetd.c,v 1.127 2021/08/29 09:54:18 christos Exp $     */
+/*     $NetBSD: inetd.c,v 1.128 2021/08/29 11:43:25 christos Exp $     */
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)inetd.c    8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.127 2021/08/29 09:54:18 christos Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.128 2021/08/29 11:43:25 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -2713,9 +2713,9 @@
                        rl_reset(sep, now);
                } else {
                        syslog(LOG_ERR,
-                            SERV_FMT ": max spawn rate (%zu in %zi seconds) "
+                            SERV_FMT ": max spawn rate (%zu in %ji seconds) "
                             "already met, closing until end of timeout in "
-                           "%zu seconds",
+                           "%ju seconds",
                             SERV_PARAMS(sep),
                             sep->se_service_max,
                            (intmax_t)CNT_INTVL,
@@ -2770,7 +2770,7 @@
                                         */
                                        syslog(LOG_ERR, SERV_FMT
                                            ": max ip spawn rate (%zu in " 
-                                           "%zi seconds) for "
+                                           "%ji seconds) for "
                                            "%." TOSTRING(NI_MAXHOST) "s "
                                            "already met; service not started",
                                            SERV_PARAMS(sep),
@@ -2941,7 +2941,7 @@
 static void
 rl_reset(struct servtab *sep, time_t now)
 {
-       DPRINTF(SERV_FMT ": %zi seconds passed; resetting rate limiting ", 
+       DPRINTF(SERV_FMT ": %ji seconds passed; resetting rate limiting ", 
            SERV_PARAMS(sep), (intmax_t)(now - sep->se_time));
 
        sep->se_count = 0;



Home | Main Index | Thread Index | Old Index