summaryrefslogtreecommitdiff
path: root/openwrt/package/pptpd/patches/bad-pqueue-debug.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-30 13:04:31 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-30 13:04:31 +0000
commitdd7248857fec5dfa34dc42af943c2bee158e53e0 (patch)
treef0f52ace9d0f76cce1dba8b2d65d7bb823717a63 /openwrt/package/pptpd/patches/bad-pqueue-debug.patch
parent3af6e8736a065d71f7bab9001995b0913b77d7c4 (diff)
Update pptpd to 1.3.0, closes #496 for kamikaze
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3715 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pptpd/patches/bad-pqueue-debug.patch')
-rw-r--r--openwrt/package/pptpd/patches/bad-pqueue-debug.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/openwrt/package/pptpd/patches/bad-pqueue-debug.patch b/openwrt/package/pptpd/patches/bad-pqueue-debug.patch
new file mode 100644
index 0000000000..87e76648a1
--- /dev/null
+++ b/openwrt/package/pptpd/patches/bad-pqueue-debug.patch
@@ -0,0 +1,20 @@
+diff -urN pptpd-1.3.0/pqueue.c.orig pptpd-1.3.0/pqueue.c
+--- pptpd-1.3.0/pqueue.c.orig 2006-04-17 20:44:28.000000000 -0400
++++ pptpd-1.3.0/pqueue.c 2006-04-17 20:44:58.000000000 -0400
+@@ -6,14 +6,11 @@
+ #include "pqueue.h"
+
+ #ifdef DEBUG_PQUEUE
+-#define DEBUG_ON 1
++#define DEBUG_CMD(_a) { _a }
+ #else
+-#define DEBUG_ON 0
++#define DEBUG_CMD(_a)
+ #endif
+
+-#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
+-
+-
+ #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
+
+ static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);