svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Sat Jul 26 23:16:34 UTC 2008


Author: vda
Date: 2008-07-26 16:16:33 -0700 (Sat, 26 Jul 2008)
New Revision: 22960

Log:
whitespace fix



Modified:
   trunk/busybox/miscutils/man.c


Changeset:
Modified: trunk/busybox/miscutils/man.c
===================================================================
--- trunk/busybox/miscutils/man.c	2008-07-26 23:14:23 UTC (rev 22959)
+++ trunk/busybox/miscutils/man.c	2008-07-26 23:16:33 UTC (rev 22960)
@@ -104,22 +104,22 @@
 
 	/* 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




More information about the busybox-cvs mailing list