socsvn commit: r272165 - soc2014/shonali/head/contrib/bsnmp/snmpd
shonali at FreeBSD.org
shonali at FreeBSD.org
Sun Aug 10 10:11:34 UTC 2014
Author: shonali
Date: Sun Aug 10 10:11:33 2014
New Revision: 272165
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272165
Log:
Made corrections in the switch statements(missing a break;)
Modified:
soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c
Modified: soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c
==============================================================================
--- soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c Sun Aug 10 10:09:07 2014 (r272164)
+++ soc2014/shonali/head/contrib/bsnmp/snmpd/trap.c Sun Aug 10 10:11:33 2014 (r272165)
@@ -765,7 +765,6 @@
int
target_activate_address(struct target_address *addrs)
{
- /* XXX - IPv4/IPv6 - Check if there is a better way of determining address type */
struct sockaddr_in sa;
struct sockaddr_in6 sa6;
@@ -794,7 +793,7 @@
(void)close(addrs->socket);
return (SNMP_ERR_GENERR);
}
-
+ break;
case TransportAddressIPv6 :
if ((addrs->socket = socket(PF_INET6, SOCK_DGRAM, 0)) == -1) {
@@ -816,7 +815,7 @@
(void)close(addrs->socket);
return (SNMP_ERR_GENERR);
}
-
+ break;
default:
return (NULL);
More information about the svn-soc-all
mailing list