clean up accumulated whitespace damage
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user