From c28cf398fd956eb467612eec4b31e1df371b9636 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 20 Dec 2007 05:59:34 +0000 Subject: Introduce some kind of versioning --- opentracker.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 6867946..a3aa827 100644 --- a/opentracker.c +++ b/opentracker.c @@ -1,7 +1,8 @@ /* This software was written by Dirk Engling It is considered beerware. Prost. Skol. Cheers or whatever. Some of the stuff below is stolen from Fefes example libowfat httpd. -*/ + + $Id$ */ /* System */ #include @@ -250,7 +251,7 @@ int main( int argc, char **argv ) { #endif while( scanon ) { - switch( getopt( argc, argv, ":i:p:A:P:d:r:" + switch( getopt( argc, argv, ":i:p:A:P:d:r:v" #ifdef WANT_BLACKLISTING "b:" #elif defined( WANT_CLOSED_TRACKER ) @@ -273,6 +274,7 @@ int main( int argc, char **argv ) { accesslist_blessip( tmpip, 0xffff ); /* Allow everything for now */ break; case 'h': help( argv[0] ); exit( 0 ); + case 'v': write( 2, static_inbuf, stats_return_tracker_version( static_inbuf )); exit( 0 ); default: case '?': usage( argv[0] ); exit( 1 ); } @@ -312,3 +314,5 @@ int main( int argc, char **argv ) { return 0; } + +const char *g_version_opentracker_c = "$Source$: $Revision$\n"; -- cgit v1.2.3