sysctl: eliminate some warnings of '-Wunused-function'
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
4985a11f00
commit
2f00186730
4
sysctl.c
4
sysctl.c
@ -139,6 +139,7 @@ static void slashdot(char *restrict p, char old, char new)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 // avoid '-Wunused-function' warning
|
||||||
static void setting_free(SysctlSetting *s) {
|
static void setting_free(SysctlSetting *s) {
|
||||||
if (!s)
|
if (!s)
|
||||||
return;
|
return;
|
||||||
@ -148,6 +149,7 @@ static void setting_free(SysctlSetting *s) {
|
|||||||
free(s->value);
|
free(s->value);
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static SysctlSetting *setting_new(
|
static SysctlSetting *setting_new(
|
||||||
const char *key,
|
const char *key,
|
||||||
@ -285,6 +287,7 @@ static void rstrip(char *line)
|
|||||||
end[1] = '\0';
|
end[1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 // avoid '-Wunused-function' warning
|
||||||
/*
|
/*
|
||||||
* Strip the leading and trailing spaces from a string
|
* Strip the leading and trailing spaces from a string
|
||||||
*/
|
*/
|
||||||
@ -308,6 +311,7 @@ static char *StripLeadingAndTrailingSpaces(char *oneline)
|
|||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read a sysctl setting
|
* Read a sysctl setting
|
||||||
|
Loading…
Reference in New Issue
Block a user