From 876b0cfb168c2bd5dc64810e706663a29644904d Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 19 May 2005 23:21:51 +0000 Subject: [PATCH] added propper numeric version number to version git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@585 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/Makefile.am | 2 +- program/src/rrd_tool.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/program/src/Makefile.am b/program/src/Makefile.am index 9ac851f7..0bbac1a0 100644 --- a/program/src/Makefile.am +++ b/program/src/Makefile.am @@ -11,7 +11,7 @@ fonts_DATA = DejaVuSansMono-Roman.ttf #INCLUDES = $(CGI_INCLUDES) $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ # $(PNG_INCLUDES) $(ZLIB_INCLUDES) RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@ -AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" +AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ RRD_C_FILES = \ getopt.c \ diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index 810e4b70..a5a4e008 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -552,8 +552,8 @@ int HandleInputLine(int argc, char **argv, FILE* out) strcmp("v", argv[1]) == 0 || strcmp("-v", argv[1]) == 0 || strcmp("-version", argv[1]) == 0 ) - printf("RRDtool " PACKAGE_VERSION " Copyright by Tobi Oetiker, 1997-2005 (v.%lu)\n", - rrd_version(0, NULL)); + printf("RRDtool " PACKAGE_VERSION " Copyright by Tobi Oetiker, 1997-2005 (%f)\n", + rrd_version()); else if (strcmp("restore", argv[1]) == 0) rrd_restore(argc-1, &argv[1]); else if (strcmp("resize", argv[1]) == 0) -- 2.30.2