File: 10-upstream-debug-arg-required-in-debug.patch

package info (click to toggle)
httptunnel 3.3%2Bdfsg-6
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,500 kB
  • sloc: ansic: 4,754; makefile: 26; sh: 4
file content (51 lines) | stat: -rw-r--r-- 1,540 bytes parent folder | download | duplicates (2)
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
From: Teemu Hukkanen <tjhukkan@iki.fi>
Date: Sat, 16 Mar 2024 16:04:36 +0200
Subject: --debug is required when DEBUG_MODE is defined

Origin: upstream
Forwarded: not-needed
---
 AUTHORS   | 1 +
 ChangeLog | 6 ++++++
 hts.c     | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS
index f6ecaf3..10d2007 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -21,6 +21,7 @@ Patches:		Tomas Berndtsson <tomas@nocrew.org> (Solaris)
 			Fumitoshi UKAI <ukai@debian.or.jp>
 			Brian Somers <brian@Awfulhak.org>
 			Sampo Niskanen <sampo.niskanen@iki.fi>
+			Tim Phipps <Tim.Phipps@st.com>
 Testing:		Philip Craig <philip@pobox.com>
 FAQ:			Lars Brinkhoff <lars@nocrew.org>
 			Christian Brideau <cbrideau@newbridge.com>
diff --git a/ChangeLog b/ChangeLog
index a04f77e..1ac74c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-30  lars brinkhoff  <lars@nocrew.org>
+
+	From Tim Phipps <Tim.Phipps@st.com>:
+	* hts.c (parse_arguments): --debug argument is required, not
+	optional.
+
 2001-02-25  lars brinkhoff  <lars@nocrew.org>
 
 	From Sampo Niskanen <sampo.niskanen@iki.fi>:
diff --git a/hts.c b/hts.c
index 1dcd021..e21e136 100644
--- a/hts.c
+++ b/hts.c
@@ -105,7 +105,7 @@ parse_arguments (int argc, char **argv, Arguments *arg)
 	{ "version", no_argument, 0, 'V' },
 	{ "no-daemon", no_argument, 0, 'w' },
 #ifdef DEBUG_MODE
-	{ "debug", optional_argument, 0, 'D' },
+	{ "debug", required_argument, 0, 'D' },
 	{ "logfile", required_argument, 0, 'l' },
 #endif
 	{ "device", required_argument, 0, 'd' },