aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/patches/401-no_record_file.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-07 02:09:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-07 02:09:48 +0000
commit0ca2b7f92cc00ad95420afd46f5e8f70baf93d42 (patch)
treeb0d5a2a400d0f821040308d1ac6f310d3735834d /package/ppp/patches/401-no_record_file.patch
parent00d2c4b0481bd9cdeb69b5ac420d46cdf4a5713d (diff)
downloadupstream-0ca2b7f92cc00ad95420afd46f5e8f70baf93d42.tar.gz
upstream-0ca2b7f92cc00ad95420afd46f5e8f70baf93d42.tar.bz2
upstream-0ca2b7f92cc00ad95420afd46f5e8f70baf93d42.zip
ppp: add a few patches to reduce the package size
SVN-Revision: 25919
Diffstat (limited to 'package/ppp/patches/401-no_record_file.patch')
-rw-r--r--package/ppp/patches/401-no_record_file.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/ppp/patches/401-no_record_file.patch b/package/ppp/patches/401-no_record_file.patch
new file mode 100644
index 0000000000..431fcac78a
--- /dev/null
+++ b/package/ppp/patches/401-no_record_file.patch
@@ -0,0 +1,32 @@
+--- a/pppd/pppd.h
++++ b/pppd/pppd.h
+@@ -308,7 +308,6 @@ extern int holdoff; /* Dead time before
+ extern bool holdoff_specified; /* true if user gave a holdoff value */
+ extern bool notty; /* Stdin/out is not a tty */
+ extern char *pty_socket; /* Socket to connect to pty */
+-extern char *record_file; /* File to record chars sent/received */
+ extern bool sync_serial; /* Device is synchronous serial device */
+ extern int maxfail; /* Max # of unsuccessful connection attempts */
+ extern char linkname[MAXPATHLEN]; /* logical name for link */
+--- a/pppd/tty.c
++++ b/pppd/tty.c
+@@ -144,7 +144,7 @@ char *disconnect_script = NULL; /* Scrip
+ char *welcomer = NULL; /* Script to run after phys link estab. */
+ char *ptycommand = NULL; /* Command to run on other side of pty */
+ bool notty = 0; /* Stdin/out is not a tty */
+-char *record_file = NULL; /* File to record chars sent/received */
++static char *const record_file = NULL; /* File to record chars sent/received */
+ int max_data_rate; /* max bytes/sec through charshunt */
+ bool sync_serial = 0; /* Device is synchronous serial device */
+ char *pty_socket = NULL; /* Socket to connect to pty */
+@@ -200,8 +200,10 @@ option_t tty_options[] = {
+ "Send and receive over socket, arg is host:port",
+ OPT_PRIO | OPT_DEVNAM },
+
++#if 0
+ { "record", o_string, &record_file,
+ "Record characters sent/received to file", OPT_PRIO },
++#endif
+
+ { "crtscts", o_int, &crtscts,
+ "Set hardware (RTS/CTS) flow control",