whitespace fixes. no code changes

This commit is contained in:
Denis Vlasenko 2008-04-22 00:16:29 +00:00
parent 5d89fbaa2e
commit 1f228985b2
9 changed files with 30 additions and 30 deletions

View File

@ -60,7 +60,7 @@ static int get_vt_fd(void)
/* Do we, by chance, already have it? */ /* Do we, by chance, already have it? */
for (fd = 0; fd < 3; fd++) for (fd = 0; fd < 3; fd++)
if (!not_vt_fd(fd)) if (!not_vt_fd(fd))
return fd; return fd;
/* _only_ O_NONBLOCK: ask for neither read not write perms */ /* _only_ O_NONBLOCK: ask for neither read not write perms */
fd = open(DEV_CONSOLE, O_NONBLOCK); fd = open(DEV_CONSOLE, O_NONBLOCK);
if (fd >= 0 && !not_vt_fd(fd)) if (fd >= 0 && !not_vt_fd(fd))
@ -73,7 +73,7 @@ static int find_free_vtno(void)
int vtno; int vtno;
int fd = get_vt_fd(); int fd = get_vt_fd();
errno = 0; errno = 0;
/*xfunc_error_retval = 3; - do we need compat? */ /*xfunc_error_retval = 3; - do we need compat? */
if (ioctl(fd, VT_OPENQRY, &vtno) != 0 || vtno <= 0) if (ioctl(fd, VT_OPENQRY, &vtno) != 0 || vtno <= 0)
bb_perror_msg_and_die("can't find open VT"); bb_perror_msg_and_die("can't find open VT");

View File

@ -142,18 +142,18 @@ static void do_procinit(void)
procdir = xopendir("/proc"); procdir = xopendir("/proc");
pid = 0; pid = 0;
while(1) { while(1) {
errno = 0; /* clear any previous error */ errno = 0; /* clear any previous error */
entry = readdir(procdir); entry = readdir(procdir);
// TODO: check for exact errno(s) which mean that we got stale entry // TODO: check for exact errno(s) which mean that we got stale entry
if (errno) /* Stale entry, process has died after opendir */ if (errno) /* Stale entry, process has died after opendir */
continue; continue;
if (!entry) /* EOF, no more entries */ if (!entry) /* EOF, no more entries */
break; break;
pid = bb_strtou(entry->d_name, NULL, 10); pid = bb_strtou(entry->d_name, NULL, 10);
if (errno) /* NaN */ if (errno) /* NaN */
continue; continue;
check(pid); check(pid);
} }
closedir(procdir); closedir(procdir);
if (!pid) if (!pid)

View File

@ -9,11 +9,11 @@
* - use kernel option 'vga=xxx' or otherwise enable framebuffer device. * - use kernel option 'vga=xxx' or otherwise enable framebuffer device.
* - put somewhere fbsplash.cfg file and an image in .ppm format. * - put somewhere fbsplash.cfg file and an image in .ppm format.
* - run applet: $ setsid fbsplash [params] & * - run applet: $ setsid fbsplash [params] &
* -c: hide cursor * -c: hide cursor
* -d /dev/fbN: framebuffer device (if not /dev/fb0) * -d /dev/fbN: framebuffer device (if not /dev/fb0)
* -s path_to_image_file (can be "-" for stdin) * -s path_to_image_file (can be "-" for stdin)
* -i path_to_cfg_file * -i path_to_cfg_file
* -f path_to_fifo (can be "-" for stdin) * -f path_to_fifo (can be "-" for stdin)
* - if you want to run it only in presence of a kernel parameter * - if you want to run it only in presence of a kernel parameter
* (for example fbsplash=on), use: * (for example fbsplash=on), use:
* grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params] * grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params]
@ -342,7 +342,7 @@ static void init(const char *cfg_filename)
case 7: case 7:
G.bdebug_messages = val; G.bdebug_messages = val;
if (G.bdebug_messages) if (G.bdebug_messages)
G.logfile_fd = xfopen("/tmp/fbsplash.log", "w"); G.logfile_fd = xfopen("/tmp/fbsplash.log", "w");
break; break;
#endif #endif
err: err:

View File

@ -137,8 +137,8 @@ int man_main(int argc ATTRIBUTE_UNUSED, char **argv)
char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2", char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2",
path_len, cur_path, path_len, cur_path,
sect_len, cur_sect, sect_len, cur_sect,
*argv, *argv,
sect_len, cur_sect); sect_len, cur_sect);
int found = show_manpage(pager, man_filename); int found = show_manpage(pager, man_filename);
free(man_filename); free(man_filename);