From 77808453cd8e23b08dd15a997161195d5c482b4f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 21 Nov 2014 07:26:26 +0100 Subject: Remove warnings --- etisnoop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etisnoop.cpp b/etisnoop.cpp index 685c4ac..6f15178 100644 --- a/etisnoop.cpp +++ b/etisnoop.cpp @@ -77,7 +77,7 @@ struct eti_analyse_config_t { int eti_analyse(eti_analyse_config_t& config); -char* get_fig_0_13_userapp(int user_app_type) +std::string get_fig_0_13_userapp(int user_app_type) { switch (user_app_type) { case 0x000: return "Reserved for future definition"; @@ -721,7 +721,7 @@ void decodeFIG(unsigned char* f, sprintf(desc, "User Application %d '%s'; length %u", user_app_type, - get_fig_0_13_userapp(user_app_type), + get_fig_0_13_userapp(user_app_type).c_str(), user_app_len); printbuf(desc, indent+2, NULL, 0); } -- cgit v1.2.3