whitespace fix
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 26 Jul 2008 23:16:33 +0000 (23:16 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 26 Jul 2008 23:16:33 +0000 (23:16 -0000)
miscutils/man.c

index 5c8e2a4e5b32ca804bcb817f29864232a446b382..edeffc7769496d47bea61c283325b06ce5852981 100644 (file)
@@ -104,22 +104,22 @@ int man_main(int argc UNUSED_PARAM, char **argv)
 
        /* Parse man.conf */
        parser = config_open("/etc/man.conf");
-       while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
-               if (!token[1])
-                       continue;
-               if (strcmp("MANPATH", token[0]) == 0) {
-                       man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
-                       man_path_list[count_mp] = xstrdup(token[1]);
-                       count_mp++;
-                       /* man_path_list is NULL terminated */
-                       man_path_list[count_mp] = NULL;
-               }
-               if (strcmp("MANSECT", token[0]) == 0) {
-                       free(sec_list);
-                       sec_list = xstrdup(token[1]);
-               }
-       }
-       config_close(parser);
+       while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) {
+               if (!token[1])
+                       continue;
+               if (strcmp("MANPATH", token[0]) == 0) {
+                       man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
+                       man_path_list[count_mp] = xstrdup(token[1]);
+                       count_mp++;
+                       /* man_path_list is NULL terminated */
+                       man_path_list[count_mp] = NULL;
+               }
+               if (strcmp("MANSECT", token[0]) == 0) {
+                       free(sec_list);
+                       sec_list = xstrdup(token[1]);
+               }
+       }
+       config_close(parser);
 
 // TODO: my man3/getpwuid.3.gz contains just one line:
 // .so man3/getpwnam.3