From 229cb57b2cbab37a8a0cc1499cebf7e9c9e1deec Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 16 Apr 2009 01:29:36 +0200 Subject: [PATCH] crontab(8)/mtrace(8): Remove CVS ID handling. --- usr.sbin/cron/crontab/crontab.c | 3 --- usr.sbin/mrouted/mtrace.c | 30 ++---------------------------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c index 2b67265..4c4e6e7 100644 --- a/usr.sbin/cron/crontab/crontab.c +++ b/usr.sbin/cron/crontab/crontab.c @@ -24,8 +24,6 @@ * vix 26jan87 [original] */ -static char version[] = "$DragonFly: src/usr.sbin/cron/crontab/crontab.c,v 1.5 2004/12/18 22:48:03 swildner Exp $"; - #define MAIN_PROGRAM #include "cron.h" @@ -514,7 +512,6 @@ replace_cmd(void) */ fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n"); fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now)); - fprintf(tmp, "# (Cron version -- %s)\n", version); /* copy the crontab to the tmp */ diff --git a/usr.sbin/mrouted/mtrace.c b/usr.sbin/mrouted/mtrace.c index 632c4f6..26eec17 100644 --- a/usr.sbin/mrouted/mtrace.c +++ b/usr.sbin/mrouted/mtrace.c @@ -145,8 +145,6 @@ typedef unsigned int u_int32; /* XXX */ #include "mtrace.h" -const char version[] = "$DragonFly: src/usr.sbin/mrouted/mtrace.c,v 1.8 2005/12/05 00:58:50 swildner Exp $"; - #define DEFAULT_TIMEOUT 3 /* How long to wait before retrying requests */ #define DEFAULT_RETRIES 3 /* How many times to try */ #define DEFAULT_EXTRAHOPS 3 /* How many hops past a non-responding rtr */ @@ -2411,32 +2409,8 @@ main(int argc, char **argv) weak = TRUE; break; case 'V': /* Print version and exit */ - /* - * FreeBSD wants to have its own Id string, so - * determination of the version number has to change. - * XXX Note that this must be changed by hand on importing - * XXX new versions! - */ - { - char *r = strdup(version); - char *s = strchr(r, ','); - - while (s && *(s+1) != 'v') - s = strchr(s + 1, ','); - - if (s) { - char *q; - - s += 3; /* , v sp */ - q = strchr(s, ' '); - if (q) - *q = '\0'; - fprintf(stderr, "mtrace version 5.2/%s\n", s); - } else { - fprintf(stderr, "mtrace could not determine version number!?\n"); - } - exit(1); - } + fprintf(stderr, "mtrace version 5.2\n"); + exit(1); break; case 'l': /* Loop updating stats indefinitely */ numstats = 3153600; -- 1.7.7.2