aboutsummaryrefslogtreecommitdiffstats
path: root/mergecap.c
diff options
context:
space:
mode:
authorOlivier Biot <obiot.ethereal@gmail.com>2004-01-18 01:41:14 +0000
committerOlivier Biot <obiot.ethereal@gmail.com>2004-01-18 01:41:14 +0000
commit8db6fb47cdc5827cce492a0ca226117d876645f0 (patch)
tree0d87d92993969b1b1fb61bdd7ca48511898ce15c /mergecap.c
parentbe6e7afc4e3f3d622a4878631768c8ce6702813d (diff)
Nice rendering of the CVS version as "(cvs 200401181200003000)".
The make-version.pl script only defines CVSVERSION if this was a build from CVS. svn path=/trunk/; revision=9701
Diffstat (limited to 'mergecap.c')
-rw-r--r--mergecap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mergecap.c b/mergecap.c
index 5abe344d53..30bd1dbfab 100644
--- a/mergecap.c
+++ b/mergecap.c
@@ -1,6 +1,6 @@
/* Combine two dump files, either by appending or by merging by timestamp
*
- * $Id: mergecap.c,v 1.12 2004/01/16 20:03:10 jmayer Exp $
+ * $Id: mergecap.c,v 1.13 2004/01/18 01:41:14 obiot Exp $
*
* Written by Scott Renfro <scott@renfro.org> based on
* editcap by Richard Sharpe and Guy Harris
@@ -445,7 +445,11 @@ main(int argc, char *argv[])
break;
case 'h':
- fprintf(stderr, "mergecap version %s%s\n", VERSION, CVSVERSION);
+ fprintf(stderr, "mergecap version %s"
+#ifdef CVSVERSION
+ " (cvs " CVSVERSION ")"
+#endif
+ "\n", VERSION);
usage();
exit(1);
break;