mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
whitespace fix
This commit is contained in:
parent
c24033eebe
commit
94d03f0da0
@ -104,22 +104,22 @@ int man_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
/* Parse man.conf */
|
/* Parse man.conf */
|
||||||
parser = config_open("/etc/man.conf");
|
parser = config_open("/etc/man.conf");
|
||||||
while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
|
while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
|
||||||
if (!token[1])
|
if (!token[1])
|
||||||
continue;
|
continue;
|
||||||
if (strcmp("MANPATH", token[0]) == 0) {
|
if (strcmp("MANPATH", token[0]) == 0) {
|
||||||
man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
|
man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
|
||||||
man_path_list[count_mp] = xstrdup(token[1]);
|
man_path_list[count_mp] = xstrdup(token[1]);
|
||||||
count_mp++;
|
count_mp++;
|
||||||
/* man_path_list is NULL terminated */
|
/* man_path_list is NULL terminated */
|
||||||
man_path_list[count_mp] = NULL;
|
man_path_list[count_mp] = NULL;
|
||||||
}
|
}
|
||||||
if (strcmp("MANSECT", token[0]) == 0) {
|
if (strcmp("MANSECT", token[0]) == 0) {
|
||||||
free(sec_list);
|
free(sec_list);
|
||||||
sec_list = xstrdup(token[1]);
|
sec_list = xstrdup(token[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
config_close(parser);
|
config_close(parser);
|
||||||
|
|
||||||
// TODO: my man3/getpwuid.3.gz contains just one line:
|
// TODO: my man3/getpwuid.3.gz contains just one line:
|
||||||
// .so man3/getpwnam.3
|
// .so man3/getpwnam.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user