summaryrefslogtreecommitdiffstats
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
commit1538f5927b3cfec60245ee61a9cc4263ff82d4ec (patch)
treeba7ee583bf6722327ada2b833c2caf7bba622bdc /lib/command.c
parent27902ea4e78b5bf3613d00190d2dcc9978cd4183 (diff)
downloadquagga-1538f5927b3cfec60245ee61a9cc4263ff82d4ec.tar.bz2
quagga-1538f5927b3cfec60245ee61a9cc4263ff82d4ec.tar.xz
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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/command.c b/lib/command.c
index d2e93e11..004b087b 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -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);
}