diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-09-20 08:33:19 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-09-20 08:33:19 +0000 |
commit | 70fde64c165404c4c1825c5a96a9ffac6d85f2b9 (patch) | |
tree | 3e9a3b4ca24a9303b94a670fd78eef3ec0c6ea3e /usr.sbin | |
parent | fba816eb60a5c9edb14553dcd71b244493432dc5 (diff) |
ber_scanf_elements "i" format expects a long long pointer.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/snmpe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index dfa0c5c33df..3a18456974f 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.25 2009/12/16 22:17:53 deraadt Exp $ */ +/* $OpenBSD: snmpe.c,v 1.26 2010/09/20 08:33:18 martinh Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net> @@ -485,7 +485,8 @@ snmpe_parse(struct sockaddr_storage *ss, struct ber_element *a, *b, *c, *d, *e, *f, *next, *last; const char *errstr = "invalid message"; long long ver, req; - unsigned long type, errval, erridx; + long long errval, erridx; + unsigned long type; u_int class, state, i = 0, j = 0; char *comn, buf[BUFSIZ], host[MAXHOSTNAMELEN]; struct ber_oid o; |