From b595b381da144dec5761e61f25651aeadaa1c42e Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 8 Aug 2018 18:50:38 +0000 Subject: [PATCH] Some unsigned long to unsigned int cleanup from recent ber (type) changes. ok claudio@ --- usr.sbin/snmpctl/snmpclient.c | 10 +++++----- 1 file 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 @@ -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; -- 2.20.1