summaryrefslogtreecommitdiff
blob: 9d5e245b72953e7b44bce8c265538289d2c2805e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff -Naur pptpd-1.3.4.orig/Makefile.am pptpd-1.3.4/Makefile.am
--- pptpd-1.3.4.orig/Makefile.am	2007-04-16 04:53:53.000000000 +0400
+++ pptpd-1.3.4/Makefile.am	2007-05-01 21:29:15.000000000 +0400
@@ -11,7 +11,7 @@
 ##  warning with -Wmissing-prototypes).
 ## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers
 ##  aren't up to it).
-CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
+CFLAGS += -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
 #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"'
 #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'
 
diff -Naur pptpd-1.3.4.orig/plugins/Makefile pptpd-1.3.4/plugins/Makefile
--- pptpd-1.3.4.orig/plugins/Makefile	2006-08-03 06:02:01.000000000 +0400
+++ pptpd-1.3.4/plugins/Makefile	2007-05-01 21:29:15.000000000 +0400
@@ -1,6 +1,5 @@
-CC	= gcc
+CC	?= gcc
-COPTS	= -O2 -g
-CFLAGS	= $(COPTS) -I.. -I../../include -fPIC
+CFLAGS	+= -I.. -I../../include -fPIC
 LDFLAGS	= -shared
 LDADD   = -lutil
 INSTALL	= install -o root
diff -Naur pptpd-1.3.4.orig/pptpgre.c pptpd-1.3.4/pptpgre.c
--- pptpd-1.3.4.orig/pptpgre.c	2007-04-16 04:21:02.000000000 +0400
+++ pptpd-1.3.4/pptpgre.c	2007-05-01 21:29:50.000000000 +0400
@@ -405,9 +405,11 @@
 		}
 		/* check for out-of-order sequence number */
 		if (seq == gre.seq_recv + 1) {
+#ifdef LOG_DEBUG_GRE_ACCEPTING_PACKET
 			if (pptpctrl_debug)
 				syslog(LOG_DEBUG, "GRE: accepting packet #%d", 
 				       seq);
+#endif
 			stats.rx_accepted++;
 			gre.seq_recv = seq;
 			return cb(cl, buffer + ip_len + headersize, payload_len);
diff -Naur pptpd-1.3.4.orig/pqueue.c pptpd-1.3.4/pqueue.c
--- pptpd-1.3.4.orig/pqueue.c	2005-08-03 12:53:22.000000000 +0400
+++ pptpd-1.3.4/pqueue.c	2007-05-01 21:29:15.000000000 +0400
@@ -7,13 +7,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);