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 ++++---------------------- ax25/axgetput/axgetput.h | 2 -- ax25/axgetput/proto_bin.c | 2 -- ax25/axgetput/proto_bin.h | 2 -- ax25/axgetput/util.c | 2 -- ax25/axgetput/util.h | 2 -- 6 files changed, 4 insertions(+), 32 deletions(-) (limited to 'ax25/axgetput') 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], '/'))) diff --git a/ax25/axgetput/axgetput.h b/ax25/axgetput/axgetput.h index 59f1c74..c1ad6fa 100644 --- a/ax25/axgetput/axgetput.h +++ b/ax25/axgetput/axgetput.h @@ -1,5 +1,3 @@ -/* @(#) $Id: axgetput.h,v 1.2 2007/01/23 13:40:01 ralf Exp $ */ - /* * (c) 2002 Thomas Osterried DL9SAU * License: GPL. See http://www.fsf.org/ diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c index c59a43c..004ca5e 100644 --- a/ax25/axgetput/proto_bin.c +++ b/ax25/axgetput/proto_bin.c @@ -1,5 +1,3 @@ -/* @(#) $Id: proto_bin.c,v 1.4 2009/01/22 11:08:50 dl9sau Exp $ */ - /* * (c) 2002 Thomas Osterried DL9SAU * License: GPL. See http://www.fsf.org/ diff --git a/ax25/axgetput/proto_bin.h b/ax25/axgetput/proto_bin.h index 41c43e0..6c53fad 100644 --- a/ax25/axgetput/proto_bin.h +++ b/ax25/axgetput/proto_bin.h @@ -1,5 +1,3 @@ -/* @(#) $Id: proto_bin.h,v 1.1 2006/12/10 19:12:59 dl9sau Exp $ */ - /* * (c) 2002 Thomas Osterried DL9SAU * License: GPL. See http://www.fsf.org/ diff --git a/ax25/axgetput/util.c b/ax25/axgetput/util.c index b1d4cd3..4aff6a0 100644 --- a/ax25/axgetput/util.c +++ b/ax25/axgetput/util.c @@ -1,5 +1,3 @@ -/* @(#) $Id: util.c,v 1.2 2007/01/23 13:40:01 ralf Exp $ */ - /* * (c) 2002 Thomas Osterried DL9SAU * License: GPL. See http://www.fsf.org/ diff --git a/ax25/axgetput/util.h b/ax25/axgetput/util.h index f6d115d..abec764 100644 --- a/ax25/axgetput/util.h +++ b/ax25/axgetput/util.h @@ -1,5 +1,3 @@ -/* @(#) $Id: util.h,v 1.1 2006/12/10 19:12:59 dl9sau Exp $ */ - /* * (c) 2002 Thomas Osterried DL9SAU * License: GPL. See http://www.fsf.org/ -- cgit v1.2.3