diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-10-28 20:49:33 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-10-28 20:49:33 +0000 |
commit | 32587eba49dee78f5fe22bca554e2bedf54d5690 (patch) | |
tree | 4addaf6b765b9b1cd9759f05387b877f3b0aef04 | |
parent | 9ac461a366f817cc729cc4f43eb91de54ef86700 (diff) |
Make snmpctl compile again after the env -> snmpd_env rename in snmpd's
smi.c r1.20.
ok cc(1)
-rw-r--r-- | usr.sbin/snmpctl/snmpctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/snmpctl/snmpctl.c b/usr.sbin/snmpctl/snmpctl.c index f6bc1f59bd5..08bd69a714d 100644 --- a/usr.sbin/snmpctl/snmpctl.c +++ b/usr.sbin/snmpctl/snmpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpctl.c,v 1.21 2015/12/05 13:14:40 claudio Exp $ */ +/* $OpenBSD: snmpctl.c,v 1.22 2016/10/28 20:49:32 natano Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -68,7 +68,7 @@ struct imsgname imsgunknown = { void snmpctl_trap(int, struct parse_result *); struct imsgbuf ibuf; -struct snmpd *env; +struct snmpd *snmpd_env; struct oid mib_tree[] = MIB_TREE; __dead void @@ -92,14 +92,14 @@ main(int argc, char *argv[]) int ch; const char *sock = SNMPD_SOCKET; - if ((env = calloc(1, sizeof(struct snmpd))) == NULL) + if ((snmpd_env = calloc(1, sizeof(struct snmpd))) == NULL) err(1, "calloc"); - gettimeofday(&env->sc_starttime, NULL); + gettimeofday(&snmpd_env->sc_starttime, NULL); while ((ch = getopt(argc, argv, "ns:")) != -1) { switch (ch) { case 'n': - env->sc_flags |= SNMPD_F_NONAMES; + snmpd_env->sc_flags |= SNMPD_F_NONAMES; break; case 's': sock = optarg; @@ -134,7 +134,7 @@ main(int argc, char *argv[]) goto connect; } - free(env); + free(snmpd_env); return (0); connect: |