Fix the build by moving the initializers for len/nswapdev down below the
declarations MFC after: 3 days Pointyhat to: ngie
This commit is contained in:
parent
4642c8c5ea
commit
c3f095c6da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310675
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user