]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299465,r299807,r299808,r299817,r299831,r299832,r300167:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 04:49:58 +0000 (04:49 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 04:49:58 +0000 (04:49 +0000)
commit7568639e99bcce5721b1999763f7928776e3a04e
tree72998ebf2ba337291f4eaa65bc508264265689ff
parente8adbf28cfcb6fa6ebcf8bb0ada126cfb53ff6d7
MFC r299465,r299807,r299808,r299817,r299831,r299832,r300167:

r299465 (by cem):

bsnmp: Don't overrun privkey buffer by copying wrong size

The 'priv_key' array is SNMP_PRIV_KEY_SIZ bytes, not SNMP_AUTH_KEY_SIZ.

CIDs: 10083261009675

r299807:

Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t

This will cure some -Wformat warnings

r299808:

Use sizeof(..)s for the destination buffers instead of hardcoded values corresponding
to the destination buffer sizes

r299817:

Use SNMPD_INPUT_FAILED instead of SNMP_CODE_FAILED

SNMPD_INPUT_FAILED is `enum snmpd_input_err` type (which matches the return
code from the function). SNMP_CODE_FAILED is `enum snmp_code` type.

r299831:

Remove NO_WERROR and add WARNS?= 6

This now compiles cleanly on all architectures

Tested with: clang 3.8, gcc 4.2.1, gcc 4.5, make tinderbox

r299832:

Remove trailing whitespace in license tort

r300167 (by glebius):

Revert r299830, it has couple of fatal errors.

The CMSG_ family of macros take care of alignment, so we don't need r299830
at all, even if it was correct.  Put NO_WCAST_ALIGN into Makefile.

Together with: peter

git-svn-id: svn://svn.freebsd.org/base/stable/10@300561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmp_usm/usm_snmp.c
contrib/bsnmp/snmpd/bsnmpd.1
contrib/bsnmp/snmpd/config.c
contrib/bsnmp/snmpd/main.c
usr.sbin/bsnmpd/bsnmpd/Makefile