diff options
author | syrinx <syrinx@FreeBSD.org> | 2010-12-16 11:20:37 +0000 |
---|---|---|
committer | syrinx <syrinx@FreeBSD.org> | 2010-12-16 11:20:37 +0000 |
commit | c913d3117cfc0291a146fdfc1987ff0efb8379b9 (patch) | |
tree | 38a1feb12b29730ce2bedfd9e7a5e299e4ac3fbb /contrib/bsnmp/lib/snmp.c | |
parent | b1fa97ea3cf250a09a5e119abe677f608ddf8914 (diff) | |
download | FreeBSD-src-c913d3117cfc0291a146fdfc1987ff0efb8379b9.zip FreeBSD-src-c913d3117cfc0291a146fdfc1987ff0efb8379b9.tar.gz |
Silence the compiler warnings in libbsnmp by removing several (now)
unsed parameters.
Sponsored by: The FreeBSD Foundation
Reviewed by: philip@
Diffstat (limited to 'contrib/bsnmp/lib/snmp.c')
-rw-r--r-- | contrib/bsnmp/lib/snmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/bsnmp/lib/snmp.c b/contrib/bsnmp/lib/snmp.c index 322ac9f..633d10e 100644 --- a/contrib/bsnmp/lib/snmp.c +++ b/contrib/bsnmp/lib/snmp.c @@ -640,7 +640,7 @@ snmp_pdu_decode_secmode(struct asn_buf *b, struct snmp_pdu *pdu) (pdu->flags & SNMP_MSG_AUTH_FLAG) == 0) return (SNMP_CODE_BADSECLEVEL); - if ((code = snmp_pdu_calc_digest(b, pdu, digest)) != + if ((code = snmp_pdu_calc_digest(pdu, digest)) != SNMP_CODE_OK) return (SNMP_CODE_FAILED); @@ -659,7 +659,7 @@ snmp_pdu_decode_secmode(struct asn_buf *b, struct snmp_pdu *pdu) (pdu->flags & SNMP_MSG_PRIV_FLAG) == 0) return (SNMP_CODE_BADSECLEVEL); - if ((code = snmp_pdu_decrypt(b, pdu)) != SNMP_CODE_OK) + if ((code = snmp_pdu_decrypt(pdu)) != SNMP_CODE_OK) return (SNMP_CODE_FAILED); return (code); @@ -869,7 +869,7 @@ snmp_fix_encoding(struct asn_buf *b, struct snmp_pdu *pdu) if (pdu->security_model != SNMP_SECMODEL_USM) return (SNMP_CODE_FAILED); - if (snmp_pdu_encrypt(b, pdu) != SNMP_CODE_OK) + if (snmp_pdu_encrypt(pdu) != SNMP_CODE_OK) return (SNMP_CODE_FAILED); if (pdu->user.priv_proto != SNMP_PRIV_NOPRIV && @@ -884,7 +884,7 @@ snmp_fix_encoding(struct asn_buf *b, struct snmp_pdu *pdu) pdu->digest_ptr -= moved; if (pdu->version == SNMP_V3) { - if ((code = snmp_pdu_calc_digest(b, pdu, pdu->msg_digest)) != + if ((code = snmp_pdu_calc_digest(pdu, pdu->msg_digest)) != SNMP_CODE_OK) return (SNMP_CODE_FAILED); |