clean up accumulated whitespace damage

This commit is contained in:
Denis Vlasenko
2007-03-07 09:35:43 +00:00
parent 41cca2b4f5
commit 8e858e2700
19 changed files with 31 additions and 30 deletions

View File

@@ -22,7 +22,7 @@ int create_icmp_socket(void)
* proto->p_proto to have the correct value for "icmp" */
sock = socket(AF_INET, SOCK_RAW,
(proto ? proto->p_proto : 1)); /* 1 == ICMP */
if (sock < 0) {
if (sock < 0) {
if (errno == EPERM)
bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket);

View File

@@ -79,9 +79,9 @@ const struct option *applet_long_options
(see getopt(3))
static const struct option applet_long_options[] = {
//name,has_arg,flag,val
{ "verbose", 0, 0, 'v' },
{ 0, 0, 0, 0 }
//name,has_arg,flag,val
{ "verbose", 0, 0, 'v' },
{ 0, 0, 0, 0 }
};
applet_long_options = applet_long_options;

View File

@@ -129,7 +129,7 @@ void *xmalloc_open_read_close(const char *filename, size_t *sizep)
buf = xmalloc(size + 1);
size = read_close(fd, buf, size);
if ((ssize_t)size < 0)
bb_perror_msg_and_die("'%s'", filename);
bb_perror_msg_and_die("'%s'", filename);
xrealloc(buf, size + 1);
buf[size] = '\0';
if (sizep) *sizep = size;

View File

@@ -522,7 +522,7 @@ void bb_sanitize_stdio_maybe_daemonize(int daemonize)
bb_perror_msg_and_die("fork");
if (pid) /* parent */
exit(0);
/* child */
/* child */
/* if daemonizing, make sure we detach from stdio */
setsid();
dup2(fd, 0);