From 0467087064399b00945c3fd1c69dae4124d8f4e7 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 10 Sep 2018 19:53:30 -0400 Subject: [PATCH] wmcalc: Use version number from autoconf. --- wmcalc/wmcalc.c | 2 +- wmcalc/wmcalc_c.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wmcalc/wmcalc.c b/wmcalc/wmcalc.c index 9e50c30..bc6e428 100644 --- a/wmcalc/wmcalc.c +++ b/wmcalc/wmcalc.c @@ -836,7 +836,7 @@ void displaystr(void) { void show_usage(void) { printf("\n"); - printf(" %s: Ver %d Rel %d\n",app_name, VER, REL); + printf(" %s %s\n",app_name, PACKAGE_VERSION); printf("\n"); printf("usage: %s [-g geometry] [-d display] [-f ] [-v] [-h] \n", app_name); diff --git a/wmcalc/wmcalc_c.h b/wmcalc/wmcalc_c.h index 71fb001..836df56 100644 --- a/wmcalc/wmcalc_c.h +++ b/wmcalc/wmcalc_c.h @@ -18,8 +18,6 @@ #define CONFFILENAME "/.wmcalc" #define CONFTEMPFILE "/tmp/wmcalc.tmp" #define CONFIGGLOBAL CONF"/wmcalc.conf" -#define VER 0 -#define REL 6 #define LMASK 100 #define MMASK 200