summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-11-21 13:09:48 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-11-21 13:09:48 +0000
commit035be7883dc8b703591f81b197eecc056c2cce32 (patch)
tree836d8c95ab0a0b03a45509cf2e4b7f91afc876e8 /usr.sbin/snmpd
parent331a153e758f8d2f0bdd270e279c870ecfa64de4 (diff)
While here, fix two size format string warnings.
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r--usr.sbin/snmpd/control.c4
-rw-r--r--usr.sbin/snmpd/trap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/snmpd/control.c b/usr.sbin/snmpd/control.c
index e1cece2cf69..3981ca4983e 100644
--- a/usr.sbin/snmpd/control.c
+++ b/usr.sbin/snmpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.33 2015/10/19 09:32:51 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.34 2015/11/21 13:09:47 reyk Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -207,7 +207,7 @@ control_close(struct ctl_conn *c, const char *msg, struct imsg *imsg)
struct control_sock *cs = c->cs;
if (imsg) {
- log_debug("%s: fd %d: %s, imsg %d datalen %u", __func__,
+ log_debug("%s: fd %d: %s, imsg %d datalen %zu", __func__,
c->iev.ibuf.fd, msg, imsg->hdr.type, IMSG_DATA_SIZE(imsg));
imsg_free(imsg);
} else
diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c
index 2a70c323169..d8784bd1ff0 100644
--- a/usr.sbin/snmpd/trap.c
+++ b/usr.sbin/snmpd/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.24 2015/01/16 00:05:13 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.25 2015/11/21 13:09:47 reyk Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@ -126,7 +126,7 @@ trap_agentx(struct agentx_handle *h, struct agentx_pdu *pdu, int *idx,
if (varbind != NULL)
len = ber_calc_len(varbind);
- log_debug("trap_agentx: from pid %u len %d elements %d",
+ log_debug("trap_agentx: from pid %u len %zd elements %d",
pid, len, x);
trap_send(&o, varbind);