svn commit: r310561 - stable/11/usr.sbin/bsnmpd/tools/bsnmptools

Ngie Cooper ngie at FreeBSD.org
Mon Dec 26 06:02:46 UTC 2016


Author: ngie
Date: Mon Dec 26 06:02:45 2016
New Revision: 310561
URL: https://svnweb.freebsd.org/changeset/base/310561

Log:
  MFC r310203:
  
  Clean up parse_ip(..)
  
  - Clean up trailing whitespace
  - Fix variable alignment

Modified:
  stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
==============================================================================
--- stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c	Mon Dec 26 02:51:03 2016	(r310560)
+++ stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c	Mon Dec 26 06:02:45 2016	(r310561)
@@ -603,9 +603,9 @@ parse_oid_string(struct snmp_toolinfo *s
 static int32_t
 parse_ip(struct snmp_value * value, char * val)
 {
-	uint32_t v;
-	int32_t i;
 	char *endptr, *str;
+	int32_t i;
+	uint32_t v;
 
 	str = val;
 	for (i = 0; i < 4; i++) {
@@ -617,8 +617,8 @@ parse_ip(struct snmp_value * value, char
 		str = endptr + 1;
 		value->v.ipaddress[i] = (uint8_t) v;
 	}
-
 	value->syntax = SNMP_SYNTAX_IPADDRESS;
+
 	return (0);
 }
 


More information about the svn-src-stable-11 mailing list