From 70fde64c165404c4c1825c5a96a9ffac6d85f2b9 Mon Sep 17 00:00:00 2001 From: Martin Hedenfal Date: Mon, 20 Sep 2010 08:33:19 +0000 Subject: ber_scanf_elements "i" format expects a long long pointer. --- usr.sbin/snmpd/snmpe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/snmpd/snmpe.c') 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 @@ -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; -- cgit v1.2.3