summaryrefslogtreecommitdiff
path: root/networking/hostname.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-10-18 22:13:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-10-18 22:13:23 +0000
commitd69e31fb937852a578e550c6fe0e80359d39212f (patch)
tree1b7cfed78122f34b2807126d5a5dad70b42ef63d /networking/hostname.c
parent1977a60de42999562528ded9db1ff616c85f8295 (diff)
downloadbusybox-w32-d69e31fb937852a578e550c6fe0e80359d39212f.tar.gz
busybox-w32-d69e31fb937852a578e550c6fe0e80359d39212f.tar.bz2
busybox-w32-d69e31fb937852a578e550c6fe0e80359d39212f.zip
Fix needless difference vs GNU
Diffstat (limited to 'networking/hostname.c')
-rw-r--r--networking/hostname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/hostname.c b/networking/hostname.c
index 16de86adb..b2c3fef89 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * $Id: hostname.c,v 1.32 2001/10/31 09:59:57 andersen Exp $ 3 * $Id: hostname.c,v 1.33 2002/10/18 22:13:23 andersen Exp $
4 * Mini hostname implementation for busybox 4 * Mini hostname implementation for busybox
5 * 5 *
6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> 6 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -106,7 +106,7 @@ int hostname_main(int argc, char **argv)
106 } 106 }
107 puts(buf); 107 puts(buf);
108 } else if (type == 'd') { 108 } else if (type == 'd') {
109 puts(p ? p + 1 : ""); 109 if (p) puts(p + 1);
110 } else if (type == 'i') { 110 } else if (type == 'i') {
111 while (hp->h_addr_list[0]) { 111 while (hp->h_addr_list[0]) {
112 printf("%s ", inet_ntoa(*(struct in_addr *) (*hp->h_addr_list++))); 112 printf("%s ", inet_ntoa(*(struct in_addr *) (*hp->h_addr_list++)));