diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-07 09:35:43 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-07 09:35:43 +0000 |
commit | e192b560aa95b995dbc7f89da2f9a83db793f267 (patch) | |
tree | 4829004760bedec63aa8a72affe75591e482fe4a /libbb | |
parent | 70c0a771c1278b6b47c7506d79320b7a387fb4b4 (diff) | |
download | busybox-w32-e192b560aa95b995dbc7f89da2f9a83db793f267.tar.gz busybox-w32-e192b560aa95b995dbc7f89da2f9a83db793f267.tar.bz2 busybox-w32-e192b560aa95b995dbc7f89da2f9a83db793f267.zip |
clean up accumulated whitespace damage
git-svn-id: svn://busybox.net/trunk/busybox@18020 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/create_icmp_socket.c | 2 | ||||
-rw-r--r-- | libbb/getopt32.c | 6 | ||||
-rw-r--r-- | libbb/read.c | 2 | ||||
-rw-r--r-- | libbb/xfuncs.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/libbb/create_icmp_socket.c b/libbb/create_icmp_socket.c index 666454888..dbd4769f6 100644 --- a/libbb/create_icmp_socket.c +++ b/libbb/create_icmp_socket.c | |||
@@ -22,7 +22,7 @@ int create_icmp_socket(void) | |||
22 | * proto->p_proto to have the correct value for "icmp" */ | 22 | * proto->p_proto to have the correct value for "icmp" */ |
23 | sock = socket(AF_INET, SOCK_RAW, | 23 | sock = socket(AF_INET, SOCK_RAW, |
24 | (proto ? proto->p_proto : 1)); /* 1 == ICMP */ | 24 | (proto ? proto->p_proto : 1)); /* 1 == ICMP */ |
25 | if (sock < 0) { | 25 | if (sock < 0) { |
26 | if (errno == EPERM) | 26 | if (errno == EPERM) |
27 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); | 27 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); |
28 | bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket); | 28 | bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket); |
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index f93438df0..9f5fd60bd 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c | |||
@@ -79,9 +79,9 @@ const struct option *applet_long_options | |||
79 | (see getopt(3)) | 79 | (see getopt(3)) |
80 | 80 | ||
81 | static const struct option applet_long_options[] = { | 81 | static const struct option applet_long_options[] = { |
82 | //name,has_arg,flag,val | 82 | //name,has_arg,flag,val |
83 | { "verbose", 0, 0, 'v' }, | 83 | { "verbose", 0, 0, 'v' }, |
84 | { 0, 0, 0, 0 } | 84 | { 0, 0, 0, 0 } |
85 | }; | 85 | }; |
86 | applet_long_options = applet_long_options; | 86 | applet_long_options = applet_long_options; |
87 | 87 | ||
diff --git a/libbb/read.c b/libbb/read.c index 861828da1..c05b26b50 100644 --- a/libbb/read.c +++ b/libbb/read.c | |||
@@ -129,7 +129,7 @@ void *xmalloc_open_read_close(const char *filename, size_t *sizep) | |||
129 | buf = xmalloc(size + 1); | 129 | buf = xmalloc(size + 1); |
130 | size = read_close(fd, buf, size); | 130 | size = read_close(fd, buf, size); |
131 | if ((ssize_t)size < 0) | 131 | if ((ssize_t)size < 0) |
132 | bb_perror_msg_and_die("'%s'", filename); | 132 | bb_perror_msg_and_die("'%s'", filename); |
133 | xrealloc(buf, size + 1); | 133 | xrealloc(buf, size + 1); |
134 | buf[size] = '\0'; | 134 | buf[size] = '\0'; |
135 | if (sizep) *sizep = size; | 135 | if (sizep) *sizep = size; |
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index f6444bbc6..2cc6a8299 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -522,7 +522,7 @@ void bb_sanitize_stdio_maybe_daemonize(int daemonize) | |||
522 | bb_perror_msg_and_die("fork"); | 522 | bb_perror_msg_and_die("fork"); |
523 | if (pid) /* parent */ | 523 | if (pid) /* parent */ |
524 | exit(0); | 524 | exit(0); |
525 | /* child */ | 525 | /* child */ |
526 | /* if daemonizing, make sure we detach from stdio */ | 526 | /* if daemonizing, make sure we detach from stdio */ |
527 | setsid(); | 527 | setsid(); |
528 | dup2(fd, 0); | 528 | dup2(fd, 0); |