aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2001-05-16 14:21:09 +0000
committerGravatar Matt Kraai <kraai@debian.org>2001-05-16 14:21:09 +0000
commit59df6f73988b103f0dcfffeaec10642527336c5e (patch)
treefab28cbdabe79bb98e1cdc99f1fa2b6da599f709 /networking
parentbc604a2f417ea290913fedb6807e390e4fc8833e (diff)
downloadbusybox-59df6f73988b103f0dcfffeaec10642527336c5e.tar.gz
busybox-59df6f73988b103f0dcfffeaec10642527336c5e.tar.bz2
Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c
by Larry Doolittle.
Diffstat (limited to 'networking')
-rw-r--r--networking/hostname.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/hostname.c b/networking/hostname.c
index a6e001d54..f4118ea36 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.26 2001/03/09 21:24:12 andersen Exp $
+ * $Id: hostname.c,v 1.27 2001/05/16 14:21:09 kraai Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -112,19 +112,19 @@ int hostname_main(int argc, char **argv)
if (!s)
s = buf;
*s = 0;
- printf("%s\n", buf);
+ puts(buf);
} else if (opt_domain) {
s = strchr(buf, '.');
- printf("%s\n", (s ? s + 1 : ""));
+ puts(s ? s + 1 : "");
} else if (opt_ip) {
h = gethostbyname(buf);
if (!h) {
printf("Host not found\n");
exit(1);
}
- printf("%s\n", inet_ntoa(*(struct in_addr *) (h->h_addr)));
+ puts(inet_ntoa(*(struct in_addr *) (h->h_addr)));
} else {
- printf("%s\n", buf);
+ puts(buf);
}
}
return(0);