File: 0037-Use-ellipsis-in-logging-functions.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 (20 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use ellipsis in logging functions when not in DEBUG_MODE
Bug-Debian: https://bugs.debian.org/1096818
Author: Teemu Hukkanen <tjhukkan@iki.fi>
Forwarded: no
---
--- httptunnel-3.3+dfsg.orig/common.h
+++ httptunnel-3.3+dfsg/common.h
@@ -50,9 +50,9 @@ extern void log_debug (char *fmt0, ...);
 extern void log_verbose (char *fmt0, ...);
 extern void log_annoying (char *fmt0, ...);
 #else
-static inline void log_debug () {}
-static inline void log_verbose () {}
-static inline void log_annoying () {}
+static inline void log_debug (...) {}
+static inline void log_verbose (...) {}
+static inline void log_annoying (...) {}
 #endif
 
 extern int server_socket (struct in_addr addr, int port, int backlog);