[procps] [PATCH 2/5] proc/version.c: use autotools version

  • From: Sami Kerola <kerolasa@xxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Sun, 24 Apr 2011 19:55:03 +0200

The old version number output does not work after commit
29c2b8cea9b2aa7f11cde8a8d7a3bf9c9a0e58d7

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 proc/version.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/proc/version.c b/proc/version.c
index 0c3a48f..d4f416d 100644
--- a/proc/version.c
+++ b/proc/version.c
@@ -14,11 +14,7 @@
 #include <stdlib.h>
 #include "version.h"
 
-#ifdef MINORVERSION
-const char procps_version[] = "procps version " VERSION "." SUBVERSION "." 
MINORVERSION;
-#else
-const char procps_version[] = "procps version " VERSION "." SUBVERSION;
-#endif
+const char procps_version[] = PACKAGE_NAME " version " PACKAGE_VERSION;
 
 void display_version(void) {
     fprintf(stdout, "%s\n", procps_version);
-- 
1.7.4.4


Other related posts:

  • » [procps] [PATCH 2/5] proc/version.c: use autotools version - Sami Kerola