summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2005-03-15 10:45:42 +0000
committerphilip <philip@FreeBSD.org>2005-03-15 10:45:42 +0000
commit2e1bf3f218cc6e5b877273138aeee1c165d5a0b9 (patch)
treec69d1c38a4c49d0c5fb6e1e497f498b86e18e56d /usr.sbin
parent4799d2dacc7b8c090147dbebdbc9e3ec7da056df (diff)
downloadFreeBSD-src-2e1bf3f218cc6e5b877273138aeee1c165d5a0b9.zip
FreeBSD-src-2e1bf3f218cc6e5b877273138aeee1c165d5a0b9.tar.gz
Cast time_t to uintmax_t so they can be printed as %ju without breaking on
various architectures. This should appease tinderbox on alpha and not break it anywhere else. Suggested by: harti
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
index 5215fdb..cd01453 100644
--- a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+++ b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
@@ -33,6 +33,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1143,18 +1144,18 @@ pf_dump(void)
pfq_refresh();
pft_refresh();
- syslog(LOG_ERR, "Dump: pfi_table_age = %zu",
- pfi_table_age);
+ syslog(LOG_ERR, "Dump: pfi_table_age = %ju",
+ (uintmax_t)pfi_table_age);
syslog(LOG_ERR, "Dump: pfi_table_count = %d",
pfi_table_count);
- syslog(LOG_ERR, "Dump: pfq_table_age = %zu",
- pfq_table_age);
+ syslog(LOG_ERR, "Dump: pfq_table_age = %ju",
+ (uintmax_t)pfq_table_age);
syslog(LOG_ERR, "Dump: pfq_table_count = %d",
pfq_table_count);
- syslog(LOG_ERR, "Dump: pft_table_age = %zu",
- pft_table_age);
+ syslog(LOG_ERR, "Dump: pft_table_age = %ju",
+ (uintmax_t)pft_table_age);
syslog(LOG_ERR, "Dump: pft_table_count = %d",
pft_table_count);
OpenPOWER on IntegriCloud