summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorajs <ajs>2005-01-14 17:09:38 +0000
committerajs <ajs>2005-01-14 17:09:38 +0000
commitcb585b65d1a513fd62449cc031e273245a8fd6c0 (patch)
tree076602b4fae8d47e3b82c353898de5260ac91007 /lib/command.c
parentf867d32c4a0d6a18c5f7c042b9dd5798dce93e10 (diff)
2005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* command.c (print_version): Do not bother even to examine host.name, since it is always NULL when this function is called from main.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/command.c b/lib/command.c
index 3891733b..92bbac75 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1,5 +1,5 @@
/*
- $Id: command.c,v 1.32 2005/01/14 15:47:33 gdt Exp $
+ $Id: command.c,v 1.33 2005/01/14 17:09:38 ajs Exp $
Command interpreter routine for virtual terminal [aka TeletYpe]
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
@@ -142,13 +142,12 @@ level_match(const char *s)
return ZLOG_DISABLED;
}
+/* This is called from main when a daemon is invoked with -v or --version. */
void
print_version (const char *progname)
{
- printf ("%s version %s", progname, QUAGGA_VERSION);
- if (host.name != NULL)
- printf (" (%s)", host.name);
- printf ("\n%s\n", QUAGGA_COPYRIGHT);
+ printf ("%s version %s\n", progname, QUAGGA_VERSION);
+ printf ("%s\n", QUAGGA_COPYRIGHT);
}