Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153286901
D40670.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D40670.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D40670: libbsnmptools: Fully comment out set but unused count variable.
Attached
Detach File
Event Timeline
Log In to Comment