diff options
author | erdgeist <> | 2007-12-20 05:59:34 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-20 05:59:34 +0000 |
commit | c28cf398fd956eb467612eec4b31e1df371b9636 (patch) | |
tree | 8ea7885c689844d06aa59a420fbaf06fee5ded19 /opentracker.c | |
parent | d9ed6c22bd26268b8ae51cc062e41f20e2dc68bd (diff) |
Introduce some kind of versioning
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index 6867946..a3aa827 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -1,7 +1,8 @@ | |||
1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. |
3 | Some of the stuff below is stolen from Fefes example libowfat httpd. | 3 | Some of the stuff below is stolen from Fefes example libowfat httpd. |
4 | */ | 4 | |
5 | $Id$ */ | ||
5 | 6 | ||
6 | /* System */ | 7 | /* System */ |
7 | #include <string.h> | 8 | #include <string.h> |
@@ -250,7 +251,7 @@ int main( int argc, char **argv ) { | |||
250 | #endif | 251 | #endif |
251 | 252 | ||
252 | while( scanon ) { | 253 | while( scanon ) { |
253 | switch( getopt( argc, argv, ":i:p:A:P:d:r:" | 254 | switch( getopt( argc, argv, ":i:p:A:P:d:r:v" |
254 | #ifdef WANT_BLACKLISTING | 255 | #ifdef WANT_BLACKLISTING |
255 | "b:" | 256 | "b:" |
256 | #elif defined( WANT_CLOSED_TRACKER ) | 257 | #elif defined( WANT_CLOSED_TRACKER ) |
@@ -273,6 +274,7 @@ int main( int argc, char **argv ) { | |||
273 | accesslist_blessip( tmpip, 0xffff ); /* Allow everything for now */ | 274 | accesslist_blessip( tmpip, 0xffff ); /* Allow everything for now */ |
274 | break; | 275 | break; |
275 | case 'h': help( argv[0] ); exit( 0 ); | 276 | case 'h': help( argv[0] ); exit( 0 ); |
277 | case 'v': write( 2, static_inbuf, stats_return_tracker_version( static_inbuf )); exit( 0 ); | ||
276 | default: | 278 | default: |
277 | case '?': usage( argv[0] ); exit( 1 ); | 279 | case '?': usage( argv[0] ); exit( 1 ); |
278 | } | 280 | } |
@@ -312,3 +314,5 @@ int main( int argc, char **argv ) { | |||
312 | 314 | ||
313 | return 0; | 315 | return 0; |
314 | } | 316 | } |
317 | |||
318 | const char *g_version_opentracker_c = "$Source$: $Revision$\n"; | ||