]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r300471:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 04:18:15 +0000 (04:18 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 04:18:15 +0000 (04:18 +0000)
commit961be2596b6e5dca95de137b8794f901f14aee1c
treeeda20e52efdcbad2c42fc67f29fcb990e6fd76f3
parente94ff79c4f2d8fdd02963f419bc7c94eb179a7af
MFstable/10 r300471:

MFC r299712,r299759,r299760,r299761,r299762:

r299712:

Fix some trivial clang/gcc warnings in bsnmptc.c

- By definition, `enum snmp_tc` can't be false (the implied starting sequence
  index for the enum is 0). Don't test for it being < 0.
- Staticize `struct snmp_text_conv` to mute a -Wmissing-variable-declarations
  warning from clang.
- Remove set but unused variable, ptr, in parse_bridge_id(..) and
  parse_bport_id(..) to mute warning from gcc 4.9+.
- Mark value and string unused in snmp_inetaddr2oct(..) and parse_inetaddr(..)
  as they're just stub functions.

r299759:

Use calloc instead of memset(.., 0, ..) + malloc

r299760:

Sort variables in parse_ascii(..) per style(9)

r299761:

parse_ascii: make count size_t to mute a -Wsign-compare issue

count is always unsigned.

r299762:

Mark snmptoolctx unused in parse_authentication(..), parse_privacy(..),
parse_context(..), and parse_user_security(..).

git-svn-id: svn://svn.freebsd.org/base/stable/9@300558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c