Author: ngie
Date: Sat Dec 24 11:30:24 2016
New Revision: 310500
URL: https://svnweb.freebsd.org/changeset/base/310500

Log:
  Minor style(9) fixes
  
  - Trailing whitespace cleanup
  - Sort variables in snmp_dialog(..) by alignment
  
  No functional change
  
  MFC after:    1 week

Modified:
  head/contrib/bsnmp/lib/snmpclient.c

Modified: head/contrib/bsnmp/lib/snmpclient.c
==============================================================================
--- head/contrib/bsnmp/lib/snmpclient.c Sat Dec 24 11:26:55 2016        
(r310499)
+++ head/contrib/bsnmp/lib/snmpclient.c Sat Dec 24 11:30:24 2016        
(r310500)
@@ -1214,7 +1214,7 @@ snmp_next_reqid(struct snmp_client * c)
        int32_t i;
 
        i = c->next_reqid;
-       if (c->next_reqid >= c->max_reqid)      
+       if (c->next_reqid >= c->max_reqid)
                c->next_reqid = c->min_reqid;
        else
                c->next_reqid++;
@@ -1230,7 +1230,7 @@ snmp_send_packet(struct snmp_pdu * pdu)
         u_char *buf;
         struct asn_buf b;
         ssize_t ret;
- 
+
        if ((buf = malloc(snmp_client.txbuflen)) == NULL) {
                seterr(&snmp_client, "%s", strerror(errno));
                return (-1);
@@ -1684,9 +1684,9 @@ snmp_dialog(struct snmp_v1_pdu *req, str
        struct timeval tv = snmp_client.timeout;
        struct timeval end;
        struct snmp_pdu pdu;
-       u_int i;
-       int32_t reqid;
        int ret;
+       int32_t reqid;
+       u_int i;
 
        /*
         * Make a copy of the request and replace the syntaxes by NULL
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to