summaryrefslogtreecommitdiff
path: root/networking/hostname.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-10 22:07:48 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-10 22:07:48 +0000
commit3ff3f4ac3542073b0343e7ce0c5af322ca01da85 (patch)
tree2f3cfeac33c7a02674a7632aab5006974f9532ec /networking/hostname.c
parent59870e89aeb4be4faab6fcd2dffbd7fc683eab88 (diff)
downloadbusybox-w32-3ff3f4ac3542073b0343e7ce0c5af322ca01da85.tar.gz
busybox-w32-3ff3f4ac3542073b0343e7ce0c5af322ca01da85.tar.bz2
busybox-w32-3ff3f4ac3542073b0343e7ce0c5af322ca01da85.zip
Fix for hostname -s, by Stephan Linz
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 b2c3fef89..f7c9fc426 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.33 2002/10/18 22:13:23 andersen Exp $ 3 * $Id: hostname.c,v 1.34 2002/11/10 22:07:48 bug1 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>
@@ -104,7 +104,7 @@ int hostname_main(int argc, char **argv)
104 if (p != NULL) { 104 if (p != NULL) {
105 *p = 0; 105 *p = 0;
106 } 106 }
107 puts(buf); 107 puts(hp->h_name);
108 } else if (type == 'd') { 108 } else if (type == 'd') {
109 if (p) puts(p + 1); 109 if (p) puts(p + 1);
110 } else if (type == 'i') { 110 } else if (type == 'i') {