From cf8023c1799efd183f0d68b8c1fef2b3d80735ad Mon Sep 17 00:00:00 2001 From: bdermold Date: Thu, 27 Sep 2018 03:26:29 +0000 Subject: [PATCH] Update to get version from config.h and removed obsolete custom_GetDate() function. --- src/langley.c | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/langley.c b/src/langley.c index e621c24..3e3820c 100644 --- a/src/langley.c +++ b/src/langley.c @@ -205,10 +205,9 @@ /****** Application Includes ******/ #include "langley.h" -/* Required for RCS */ -static char *rcsid="$Id: langley.c,v 1.40 2012/02/06 19:24:24 koontz Exp $"; -static char *rcsstate="$State: Exp $"; -static char *rcsdate="$Date: 2012/02/06 19:24:24 $"; +/* Get version from config.h */ +#include "../config.h" +static const char *_Version = PACKAGE_NAME"-"PACKAGE_VERSION; char gPlatNames[NPRESPLATS][64]; @@ -414,25 +413,9 @@ char * custom_GetVersion() * and everything will work the way it is supposed to. *****************************************************************************/ { - return (rcsstate); + return (_Version); } /* custom_GetVersion (... */ -char* -custom_GetDate () -/**************************************************************************** - * This function is called by dc_maker when it needs to know the - * version date of this file. Since this file is the only unique code in the - * application, the version date of this file is the appropriate one - * to assign to the production attribute "Version_date". All of the rest - * of the code (the "zeb wrapper") is in the library libBW.a and shouldn't - * change with each measurement. Basically, just leave this function alone - * and everything will work the way it is supposed to. - *****************************************************************************/ -{ - return (rcsdate); -} /* custom_GetDate (... */ - - void custom_define_hooks () { void parse_commandline_options (void); -- 2.26.2