Author: ngie
Date: Wed Dec 28 08:11:41 2016
New Revision: 310675
URL: https://svnweb.freebsd.org/changeset/base/310675

Log:
  Fix the build by moving the initializers for len/nswapdev down below the
  declarations
  
  MFC after:    3 days
  Pointyhat to: ngie

Modified:
  head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c

Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c     Wed Dec 
28 07:37:26 2016        (r310674)
+++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c     Wed Dec 
28 08:11:41 2016        (r310675)
@@ -376,8 +376,11 @@ storage_OS_get_swap(void)
 {
        struct storage_entry *entry;
        char swap_w_prefix[SE_DESC_MLEN];
-       size_t len = sizeof(nswapdev);
-       int nswapdev = 0;
+       size_t len;
+       int nswapdev;
+
+       len = sizeof(nswapdev);
+       nswapdev = 0;
 
        if (sysctlbyname("vm.nswapdev", &nswapdev, &len, NULL,0 ) < 0) {
                syslog(LOG_ERR,
_______________________________________________
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