Page MenuHomeFreeBSD

D40670.id.diff
No OneTemporary

D40670.id.diff

diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
--- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
+++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
@@ -483,7 +483,7 @@
int32_t
parse_authentication(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg)
{
- int32_t count, subopt;
+ int32_t /* count, */ subopt;
char *val, *option;
const char *const subopts[] = {
"proto",
@@ -492,7 +492,7 @@
};
assert(opt_arg != NULL);
- count = 1;
+ /* count = 1; */
while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) {
switch (subopt) {
case 0:
@@ -530,7 +530,7 @@
warnx("Unknown suboption - '%s'", suboptarg);
return (-1);
}
- count += 1;
+ /* count += 1; */
}
return (2/* count */);
}
@@ -538,7 +538,7 @@
int32_t
parse_privacy(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg)
{
- int32_t count, subopt;
+ int32_t /* count, */ subopt;
char *val, *option;
const char *const subopts[] = {
"proto",
@@ -547,7 +547,7 @@
};
assert(opt_arg != NULL);
- count = 1;
+ /* count = 1; */
while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) {
switch (subopt) {
case 0:
@@ -583,7 +583,7 @@
warnx("Unknown suboption - '%s'", suboptarg);
return (-1);
}
- count += 1;
+ /* count += 1; */
}
return (2/* count */);
}
@@ -591,7 +591,7 @@
int32_t
parse_context(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg)
{
- int32_t count, subopt;
+ int32_t /* count, */ subopt;
char *val, *option;
const char *const subopts[] = {
"context",
@@ -600,7 +600,7 @@
};
assert(opt_arg != NULL);
- count = 1;
+ /* count = 1; */
while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) {
switch (subopt) {
case 0:
@@ -625,7 +625,7 @@
warnx("Unknown suboption - '%s'", suboptarg);
return (-1);
}
- count += 1;
+ /* count += 1; */
}
return (2/* count */);
}
@@ -633,7 +633,7 @@
int32_t
parse_user_security(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg)
{
- int32_t count, subopt, saved_errno;
+ int32_t /* count, */ subopt, saved_errno;
char *val, *option;
const char *const subopts[] = {
"engine",
@@ -644,7 +644,7 @@
};
assert(opt_arg != NULL);
- count = 1;
+ /* count = 1; */
while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) {
switch (subopt) {
case 0:
@@ -697,7 +697,7 @@
warnx("Unknown suboption - '%s'", suboptarg);
return (-1);
}
- count += 1;
+ /* count += 1; */
}
return (2/* count */);
}

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 6:30 AM (9 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31894285
Default Alt Text
D40670.id.diff (2 KB)

Event Timeline