aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 13:12:21 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 13:12:21 +0000
commit0a8812bdc588fd6e32f7c5ad97cfc9288b9822dc (patch)
treebde7df4ca9bbe31696e23b719c817acbe0e08868 /networking/udhcp
parent14aa06f29c22797bf8bf054afc25a6ef71718734 (diff)
downloadbusybox-0a8812bdc588fd6e32f7c5ad97cfc9288b9822dc.tar.gz
- replace _PATH_DEVNULL with bb_dev_null
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/common.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index f36009a1c..589214bce 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -42,8 +42,10 @@ long uptime(void)
static inline void sanitize_fds(void)
{
int zero;
- if ((zero = open(_PATH_DEVNULL, O_RDWR, 0)) < 0) return;
- while (zero < 3) zero = dup(zero);
+ if ((zero = open(bb_dev_null, O_RDWR, 0)) < 0)
+ return;
+ while (zero < 3)
+ zero = dup(zero);
close(zero);
}
@@ -76,7 +78,7 @@ void udhcp_logging(int level, const char *fmt, ...)
va_start(p, fmt);
__va_copy(p2, p);
- if(!daemonized) {
+ if (!daemonized) {
vprintf(fmt, p);
putchar('\n');
}
@@ -103,7 +105,7 @@ void udhcp_logging(int level, const char *fmt, ...)
va_list p;
va_start(p, fmt);
- if(!daemonized) {
+ if (!daemonized) {
printf("%s, ", syslog_level_msg[level]);
vprintf(fmt, p);
putchar('\n');