summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpctl
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2018-08-08 18:50:39 +0000
committerrob <rob@cvs.openbsd.org>2018-08-08 18:50:39 +0000
commitf57e11e3302bdfa89cec1e17923b55294c62d72d (patch)
tree02a38b6bfe5e0e4cc1229fa70783988d170d9be9 /usr.sbin/snmpctl
parentdbd9d313039966d739ef741ea773eeacd10418d6 (diff)
Some unsigned long to unsigned int cleanup from recent ber (type) changes.
ok claudio@
Diffstat (limited to 'usr.sbin/snmpctl')
-rw-r--r--usr.sbin/snmpctl/snmpclient.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/snmpctl/snmpclient.c b/usr.sbin/snmpctl/snmpclient.c
index f36bef43747..902985d7544 100644
--- a/usr.sbin/snmpctl/snmpclient.c
+++ b/usr.sbin/snmpctl/snmpclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpclient.c,v 1.15 2018/02/08 18:02:06 jca Exp $ */
+/* $OpenBSD: snmpclient.c,v 1.16 2018/08/08 18:50:38 rob Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -71,9 +71,9 @@ struct snmpc {
#define SNMPC_DATEANDTIME_SHORT_LEN 8
void snmpc_run(struct snmpc *, enum actions, const char *);
-void snmpc_request(struct snmpc *, u_long);
+void snmpc_request(struct snmpc *, unsigned int);
int snmpc_response(struct snmpc *);
-int snmpc_sendreq(struct snmpc *, u_long);
+int snmpc_sendreq(struct snmpc *, unsigned int);
int snmpc_recvresp(int, int, u_int32_t, struct ber_element **);
struct display_hint *
@@ -208,7 +208,7 @@ snmpc_run(struct snmpc *sc, enum actions action, const char *oid)
}
void
-snmpc_request(struct snmpc *sc, u_long type)
+snmpc_request(struct snmpc *sc, unsigned int type)
{
struct pollfd pfd[1];
int nfds, ret;
@@ -395,7 +395,7 @@ snmpc_display_hint_lookup(struct ber_oid *oid)
}
int
-snmpc_sendreq(struct snmpc *sc, u_long type)
+snmpc_sendreq(struct snmpc *sc, unsigned int type)
{
struct ber_element *root, *b;
struct ber ber;