summaryrefslogtreecommitdiffstats
path: root/bin/hostname/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hostname/hostname.c')
-rw-r--r--bin/hostname/hostname.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c
index 15aee00..48ad16d 100644
--- a/bin/hostname/hostname.c
+++ b/bin/hostname/hostname.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: hostname.c,v 1.5 1997/02/22 14:03:42 peter Exp $
+ * $Id: hostname.c,v 1.6 1997/03/28 15:24:20 imp Exp $
*/
#ifndef lint
@@ -51,6 +51,8 @@ static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
#include <string.h>
#include <unistd.h>
+extern char *__progname;
+
void usage __P((void));
int
@@ -94,6 +96,6 @@ void
usage()
{
- (void)fprintf(stderr, "usage: hostname [-s] [hostname]\n");
+ (void)fprintf(stderr, "usage: %s [-s] [name-of-host]\n", __progname);
exit(1);
}
OpenPOWER on IntegriCloud