From 17affc663783ead53551562bd9823495c12b5984 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 4 Jun 2011 16:53:24 +0200 Subject: [PATCH] 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 --- watch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/watch.c b/watch.c index 58411685..1e050dc6 100644 --- a/watch.c +++ b/watch.c @@ -10,8 +10,6 @@ * Changes by Albert Cahalan, 2002-2003. */ -#define VERSION "0.2.0" - #include #include #include @@ -25,6 +23,7 @@ #include #include #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); }