sysctl: eliminate some warnings of '-Wunused-variable'
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
7d8df62faa
commit
4985a11f00
5
sysctl.c
5
sysctl.c
@ -624,7 +624,6 @@ static SysctlSetting *parse_setting_line(
|
|||||||
const int linenum,
|
const int linenum,
|
||||||
char *line)
|
char *line)
|
||||||
{
|
{
|
||||||
SysctlSetting *s;
|
|
||||||
char *key;
|
char *key;
|
||||||
char *value;
|
char *value;
|
||||||
bool glob_exclude = FALSE;
|
bool glob_exclude = FALSE;
|
||||||
@ -680,7 +679,6 @@ static int write_setting_list(const SettingList *sl)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (string_is_glob(node->path)) {
|
if (string_is_glob(node->path)) {
|
||||||
char *gl_path;
|
|
||||||
glob_t globbuf;
|
glob_t globbuf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -726,11 +724,9 @@ static int pattern_match(const char *string, const char *pat)
|
|||||||
static int Preload(SettingList *setlist, const char *restrict const filename)
|
static int Preload(SettingList *setlist, const char *restrict const filename)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *t;
|
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int rc = EXIT_SUCCESS;
|
int rc = EXIT_SUCCESS;
|
||||||
ssize_t rlen;
|
ssize_t rlen;
|
||||||
char *name, *value;
|
|
||||||
glob_t globbuf;
|
glob_t globbuf;
|
||||||
int globerr;
|
int globerr;
|
||||||
int globflg;
|
int globflg;
|
||||||
@ -761,7 +757,6 @@ static int Preload(SettingList *setlist, const char *restrict const filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((rlen = getline(&iobuf, &iolen, fp)) > 0) {
|
while ((rlen = getline(&iobuf, &iolen, fp)) > 0) {
|
||||||
size_t offset;
|
|
||||||
SysctlSetting *setting;
|
SysctlSetting *setting;
|
||||||
|
|
||||||
n++;
|
n++;
|
||||||
|
Loading…
Reference in New Issue
Block a user