]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r233128,r300561:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 05:11:55 +0000 (05:11 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 05:11:55 +0000 (05:11 +0000)
commite59384cf2e6de176f7605b1e2a644da17337b0a6
treee3cca5dea6d68091e5352f5ad11272908728e77a
parent1d3a2544f06a20dd5c56520bd6bb9fe62e87d19f
MFstable/10 r233128,r300561:

r233128 (by harti):

memset() wants the size of the structure to clear, not the size
of the pointer to it.

r300561:

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/9@300566 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