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 --- ot_udp.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ot_udp.c') diff --git a/ot_udp.c b/ot_udp.c index 786855b..e1af2fe 100644 --- a/ot_udp.c +++ b/ot_udp.c @@ -1,5 +1,7 @@ /* This software was written by Dirk Engling - It is considered beerware. Prost. Skol. Cheers or whatever. */ + It is considered beerware. Prost. Skol. Cheers or whatever. + + $id$ */ /* System */ #include @@ -22,19 +24,21 @@ static const uint8_t g_static_connid[8] = { 0x23, 0x42, 0x05, 0x17, 0xde, 0x41, static void udp_make_connectionid( uint32_t * connid, const char * remoteip ) { /* Touch unused variable */ - remoteip = remoteip; + (void)remoteip; /* Use a static secret for now */ memcpy( connid, g_static_connid, 8 ); } +#if 0 static int udp_test_connectionid( const uint32_t * const connid, const char * remoteip ) { /* Touch unused variable */ - remoteip = remoteip; + (void)remoteip; /* Test against our static secret */ return !memcmp( connid, g_static_connid, 8 ); } +#endif /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ void handle_udp4( int64 serversocket ) { @@ -133,3 +137,5 @@ void handle_udp4( int64 serversocket ) { break; } } + +const char *g_version_udp_c = "$Source$: $Revision$\n"; -- cgit v1.2.3