watch.c: fix version printing

Print same style version string as other procps utilities. Also
the number makes now more sense, when it's coming from autotools
config.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-06-04 16:53:24 +02:00
parent 72da1d663a
commit 17affc6637

View File

@ -10,8 +10,6 @@
* Changes by Albert Cahalan, 2002-2003.
*/
#define VERSION "0.2.0"
#include <ctype.h>
#include <getopt.h>
#include <signal.h>
@ -25,6 +23,7 @@
#include <termios.h>
#include <locale.h>
#include "proc/procps.h"
#include "config.h"
#ifdef FORCE_8BIT
#undef isprint
@ -184,7 +183,7 @@ main(int argc, char *argv[])
}
if (option_version) {
fprintf(stderr, "%s\n", VERSION);
fprintf(stderr, "%s\n", PACKAGE_NAME " version " PACKAGE_VERSION);
if (!option_help)
exit(0);
}