8e8f5a5ebefc93851adbcb9875dc1ec161a2f5eb
[openwrt/svn-archive/archive.git] / net / pptpd / patches / 001-bad_pqueue_debug.patch
1 --- pptpd-1.3.4.orig/pqueue.c 2005-08-03 10:53:22.000000000 +0200
2 +++ pptpd-1.3.4/pqueue.c 2009-12-03 17:47:26.976174000 +0100
3 @@ -7,13 +7,11 @@
4 #include "pqueue.h"
5
6 #ifdef DEBUG_PQUEUE
7 -#define DEBUG_ON 1
8 +#define DEBUG_CMD(_a) { _a }
9 #else
10 -#define DEBUG_ON 0
11 +#define DEBUG_CMD(_a)
12 #endif
13
14 -#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
15 -
16 #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
17
18 static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);