summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
commit1f228985b27602f94ff973d50e276220887df6a3 (patch)
tree5715edba638603b3815dc8700c88c2c0395b2b16 /miscutils
parent5d89fbaa2e00a8a26e530306d76b78bf91d12ec8 (diff)
downloadbusybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.gz
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.bz2
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.zip
whitespace fixes. no code changes
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/fbsplash.c16
-rw-r--r--miscutils/man.c6
2 files changed, 11 insertions, 11 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index a288b3ca5..626cefb28 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -9,11 +9,11 @@
9 * - use kernel option 'vga=xxx' or otherwise enable framebuffer device. 9 * - use kernel option 'vga=xxx' or otherwise enable framebuffer device.
10 * - put somewhere fbsplash.cfg file and an image in .ppm format. 10 * - put somewhere fbsplash.cfg file and an image in .ppm format.
11 * - run applet: $ setsid fbsplash [params] & 11 * - run applet: $ setsid fbsplash [params] &
12 * -c: hide cursor 12 * -c: hide cursor
13 * -d /dev/fbN: framebuffer device (if not /dev/fb0) 13 * -d /dev/fbN: framebuffer device (if not /dev/fb0)
14 * -s path_to_image_file (can be "-" for stdin) 14 * -s path_to_image_file (can be "-" for stdin)
15 * -i path_to_cfg_file 15 * -i path_to_cfg_file
16 * -f path_to_fifo (can be "-" for stdin) 16 * -f path_to_fifo (can be "-" for stdin)
17 * - if you want to run it only in presence of a kernel parameter 17 * - if you want to run it only in presence of a kernel parameter
18 * (for example fbsplash=on), use: 18 * (for example fbsplash=on), use:
19 * grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] 19 * grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params]
@@ -147,7 +147,7 @@ static void fb_drawfullrectangle(int nx1pos, int ny1pos, int nx2pos, int ny2pos,
147 ngreen >>= 2; // 6-bit green 147 ngreen >>= 2; // 6-bit green
148 nblue >>= 3; // 5-bit blue 148 nblue >>= 3; // 5-bit blue
149 thispix = nblue + (ngreen << 5) + (nred << (5+6)); 149 thispix = nblue + (ngreen << 5) + (nred << (5+6));
150 150
151 cnt1 = ny2pos - ny1pos; 151 cnt1 = ny2pos - ny1pos;
152 nypos = ny1pos; 152 nypos = ny1pos;
153 do { 153 do {
@@ -156,7 +156,7 @@ static void fb_drawfullrectangle(int nx1pos, int ny1pos, int nx2pos, int ny2pos,
156 do { 156 do {
157 *ptr++ = thispix; 157 *ptr++ = thispix;
158 } while (--cnt2 >= 0); 158 } while (--cnt2 >= 0);
159 159
160 nypos++; 160 nypos++;
161 } while (--cnt1 >= 0); 161 } while (--cnt1 >= 0);
162} 162}
@@ -342,7 +342,7 @@ static void init(const char *cfg_filename)
342 case 7: 342 case 7:
343 G.bdebug_messages = val; 343 G.bdebug_messages = val;
344 if (G.bdebug_messages) 344 if (G.bdebug_messages)
345 G.logfile_fd = xfopen("/tmp/fbsplash.log", "w"); 345 G.logfile_fd = xfopen("/tmp/fbsplash.log", "w");
346 break; 346 break;
347#endif 347#endif
348 err: 348 err:
diff --git a/miscutils/man.c b/miscutils/man.c
index bf13ab527..278e5a336 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -82,7 +82,7 @@ int man_main(int argc ATTRIBUTE_UNUSED, char **argv)
82 82
83 sec_list = xstrdup("1:2:3:4:5:6:7:8:9"); 83 sec_list = xstrdup("1:2:3:4:5:6:7:8:9");
84 alloc_mp = 10; 84 alloc_mp = 10;
85 man_path_list = xmalloc(10 * sizeof(man_path_list[0])); 85 man_path_list = xmalloc(10 * sizeof(man_path_list[0]));
86 count_mp = 0; 86 count_mp = 0;
87 man_path_list[0] = xstrdup(getenv("MANPATH")); 87 man_path_list[0] = xstrdup(getenv("MANPATH"));
88 if (man_path_list[0]) 88 if (man_path_list[0])
@@ -137,8 +137,8 @@ int man_main(int argc ATTRIBUTE_UNUSED, char **argv)
137 137
138 char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2", 138 char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2",
139 path_len, cur_path, 139 path_len, cur_path,
140 sect_len, cur_sect, 140 sect_len, cur_sect,
141 *argv, 141 *argv,
142 sect_len, cur_sect); 142 sect_len, cur_sect);
143 int found = show_manpage(pager, man_filename); 143 int found = show_manpage(pager, man_filename);
144 free(man_filename); 144 free(man_filename);