]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Fri, 14 Jan 2005 17:09:38 +0000 (17:09 +0000)
committerajs <ajs>
Fri, 14 Jan 2005 17:09:38 +0000 (17:09 +0000)
* command.c (print_version): Do not bother even to examine host.name,
  since it is always NULL when this function is called from main.

lib/ChangeLog
lib/command.c

index ad81ed5f99cdbcf14e862b25e234b5f24f7957d8..7c928c6be2abad3f346789d998e5e771cc9119ce 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-01-14  Greg Troxel  <gdt@fnord.ir.bbn.com>
 
        * command.c (print_version): Don't print host.name if it is NULL.
index 3891733baccd857bb512c280831aa495e08d8e4b..92bbac7572b817b0864a478d091758bf758f21b3 100644 (file)
@@ -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);
 }
 
 \f