grab the package from the real location
[openwrt/svn-archive/archive.git] / net / pptpd / patches / bad-pqueue-debug.patch
1 diff -urN pptpd-1.3.0/pqueue.c.orig pptpd-1.3.0/pqueue.c
2 --- pptpd-1.3.0/pqueue.c.orig 2006-04-17 20:44:28.000000000 -0400
3 +++ pptpd-1.3.0/pqueue.c 2006-04-17 20:44:58.000000000 -0400
4 @@ -6,14 +6,11 @@
5 #include "pqueue.h"
6
7 #ifdef DEBUG_PQUEUE
8 -#define DEBUG_ON 1
9 +#define DEBUG_CMD(_a) { _a }
10 #else
11 -#define DEBUG_ON 0
12 +#define DEBUG_CMD(_a)
13 #endif
14
15 -#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
16 -
17 -
18 #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
19
20 static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);