diff options
author | Evan Huus <eapache@gmail.com> | 2013-01-26 21:21:25 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-01-26 21:21:25 +0000 |
commit | 50efee619e674fa03aa7732df951624b7b6605e7 (patch) | |
tree | ab7fa3cc3db56ce67d131e6abe8422f3307af85d /epan/crypt | |
parent | 6fe0b4cf125000fa1f2d88fc876eaf54d1159340 (diff) |
Make airpcap's print_debug_line take const arguments so that it compiles
on newer GCC's when _DEBUG is #defined.
Found while investigating
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8177
svn path=/trunk/; revision=47309
Diffstat (limited to 'epan/crypt')
-rw-r--r-- | epan/crypt/airpdcap_debug.c | 2 | ||||
-rw-r--r-- | epan/crypt/airpdcap_debug.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/crypt/airpdcap_debug.c b/epan/crypt/airpdcap_debug.c index 623fdbab1f..57fe0a6384 100644 --- a/epan/crypt/airpdcap_debug.c +++ b/epan/crypt/airpdcap_debug.c @@ -46,7 +46,7 @@ #ifdef __cplusplus extern "C" { #endif - void print_debug_line(CHAR *function, CHAR *msg, INT level) { + void print_debug_line(const CHAR *function, const CHAR *msg, const INT level) { if (level<=AIRPDCAP_DEBUG_USED_LEVEL) g_warning("dbg(%d)|(%s) %s", level, function, msg); } diff --git a/epan/crypt/airpdcap_debug.h b/epan/crypt/airpdcap_debug.h index 8d052e648f..323d564fb9 100644 --- a/epan/crypt/airpdcap_debug.h +++ b/epan/crypt/airpdcap_debug.h @@ -39,7 +39,7 @@ #include "airpdcap_interop.h" -void print_debug_line(CHAR *function, CHAR *msg, INT level); +void print_debug_line(const CHAR *function, const CHAR *msg, const INT level); #ifdef _DEBUG #ifdef __FUNCTION__ |