summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-11-21 01:55:59 +0000
committererdgeist <>2007-11-21 01:55:59 +0000
commit8bee224dc08aea5681d0065ed179cdcac6962450 (patch)
tree82b21200ad46ebe64cc4e3ac443757cf03b29483
parent9e45802946b89f61ec1420f2a9e5efd19ab9641c (diff)
static bufs are not shared anymore, even if that means more memory.
-rw-r--r--ot_accesslist.c1
-rw-r--r--ot_udp.c3
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
19static char *accesslist_filename = NULL; 19static char *accesslist_filename = NULL;
20static ot_vector accesslist; 20static ot_vector accesslist;
21static char static_inbuf[8192];
21 22
22static void accesslist_reset( void ) { 23static void accesslist_reset( void ) {
23 free( accesslist.data ); 24 free( accesslist.data );
diff --git a/ot_udp.c b/ot_udp.c
index 61624c5..af4bdc9 100644
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -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
17static char static_inbuf[8192];
18static 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 */
18void handle_udp4( int64 serversocket ) { 21void handle_udp4( int64 serversocket ) {
19 ot_peer peer; 22 ot_peer peer;