MFC r298451,r298452,r298507,r298750:
authorngie <ngie@FreeBSD.org>
Wed, 4 May 2016 00:14:50 +0000 (00:14 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 4 May 2016 00:14:50 +0000 (00:14 +0000)
commit26e1356c454fe50e6d61b6c919afb942ce8182c3
tree28dcac46a1ff8dcec3ccc3b4f81a50a2956889d0
parent78b62c1962daa19690db2303cc8c8529b23bc773
MFC r298451,r298452,r298507,r298750:

r298451:

Don't use `entry` after free in the "already in lists" case

Return with 0 as it isn't an error.

CID: 1006085
Obtained from: Isilon OneFS (part of r493633)

r298452:

Don't try to free `string` (stack allocated char[])

Fix minor style with warnx call while in the neighborhood

CID: 1009683

r298507:

Fix looking for "UTC" at start of ptr by using strnmp instead of improperly
unrolled equivalent

CID: 1347118

r298750:

Use a better idiom for finding UTC prefixed timezones

Instead of copy-pasting the string literal for "UTC" 3 times and using
strlen, use a static char[3] buffer and sizeof(..).
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c