svn commit: r310675 - head/usr.sbin/bsnmpd/modules/snmp_hostres
Ngie Cooper
ngie at FreeBSD.org
Wed Dec 28 08:11:42 UTC 2016
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,
More information about the svn-src-all
mailing list