From e21b43fd31d6112da31a1675f0553960011a0cc6 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Mon, 13 Oct 2008 02:06:12 +0000 Subject: [PATCH] Get version string from autoconf macros. --- lsyncd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lsyncd.c b/lsyncd.c index ea2ff47..89fd526 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -38,9 +38,6 @@ #define LOG_NORMAL 2 #define LOG_ERROR 3 -#define VER_MAJOR 1 -#define VER_MINOR 0 - int loglevel = LOG_NORMAL; /** @@ -913,7 +910,7 @@ bool parse_options(int argc, char **argv) } if (!strcmp("version", long_options[oi].name)) { - printf("Version: %d.%d\n", VER_MAJOR, VER_MINOR); + printf("Version: %s\n", VERSION); exit(0); }