From 6961bcb81300e6c922d49ae64f3da8cc04d69b13 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 00:03:30 +0200 Subject: Weed out all use of RCS strings. Their value has always been dubious and git doesn't support them so let's get rid of the clutter. Signed-off-by: Ralf Baechle --- ax25/axgetput/axgetput.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'ax25/axgetput/axgetput.c') diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c index 55e8364..d3d3f53 100644 --- a/ax25/axgetput/axgetput.c +++ b/ax25/axgetput/axgetput.c @@ -1,5 +1,3 @@ -static const char rcsid[] = "@(#) $Id: axgetput.c,v 1.5 2009/06/23 22:13:51 ralf Exp $"; - /* * This is axgetput * @@ -16,6 +14,9 @@ static const char rcsid[] = "@(#) $Id: axgetput.c,v 1.5 2009/06/23 22:13:51 ralf * */ +#ifdef HAVE_CONFIG_H +#include +#endif #include "includes.h" @@ -47,16 +48,6 @@ static mode_t mode_tty = 0; #define MYNAME "axgetput" #endif -struct revision { - char number[16]; - char date[16]; - char time[16]; - char author[16]; - char state[16]; -}; - -static struct revision revision; - /*---------------------------------------------------------------------------*/ static void set_tty_flags(void) @@ -153,7 +144,7 @@ static void signal_handler(int sig) void do_version(void) { - fprintf(stderr, MYNAME " %s %s\n", revision.number, revision.date); + fprintf(stderr, MYNAME " " VERSION "\n"); fprintf(stderr, " (c) 2002 Thomas Osterried \n"); fprintf(stderr, " License: GPL. See http://www.fsf.org/\n"); fprintf(stderr, " Sources: http://x-berg.in-berlin.de/cgi-bin/viewcvs.cgi/ampr/axgetput/\n"); @@ -216,15 +207,6 @@ int main(int argc, char *argv[]) int ret = 0; int c; char *p; - char buf[1024]; - - strcpy(buf, rcsid); - sscanf(buf, "%*s %*s %*s %s %s %s %s %s", - revision.number, - revision.date, - revision.time, - revision.author, - revision.state); /* determine what to so in the way how we are called */ if ((p = strrchr(argv[0], '/'))) -- cgit v1.2.3