diff options
| author | erdgeist <> | 2007-11-21 01:55:59 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-11-21 01:55:59 +0000 |
| commit | 8bee224dc08aea5681d0065ed179cdcac6962450 (patch) | |
| tree | 82b21200ad46ebe64cc4e3ac443757cf03b29483 | |
| parent | 9e45802946b89f61ec1420f2a9e5efd19ab9641c (diff) | |
static bufs are not shared anymore, even if that means more memory.
| -rw-r--r-- | ot_accesslist.c | 1 | ||||
| -rw-r--r-- | ot_udp.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 0f46a00..e1774fb 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #ifdef WANT_ACCESS_CONTROL | 18 | #ifdef WANT_ACCESS_CONTROL |
| 19 | static char *accesslist_filename = NULL; | 19 | static char *accesslist_filename = NULL; |
| 20 | static ot_vector accesslist; | 20 | static ot_vector accesslist; |
| 21 | static char static_inbuf[8192]; | ||
| 21 | 22 | ||
| 22 | static void accesslist_reset( void ) { | 23 | static void accesslist_reset( void ) { |
| 23 | free( accesslist.data ); | 24 | free( accesslist.data ); |
| @@ -14,6 +14,9 @@ | |||
| 14 | #include "ot_udp.h" | 14 | #include "ot_udp.h" |
| 15 | #include "ot_stats.h" | 15 | #include "ot_stats.h" |
| 16 | 16 | ||
| 17 | static char static_inbuf[8192]; | ||
| 18 | static char static_outbuf[8192]; | ||
| 19 | |||
| 17 | /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ | 20 | /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ |
| 18 | void handle_udp4( int64 serversocket ) { | 21 | void handle_udp4( int64 serversocket ) { |
| 19 | ot_peer peer; | 22 | ot_peer peer; |
