aboutsummaryrefslogtreecommitdiffstats
path: root/etisnoop.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-21 07:26:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-11-21 07:26:26 +0100
commit77808453cd8e23b08dd15a997161195d5c482b4f (patch)
tree13e3ec0417799757667194ee18df09b02570812a /etisnoop.cpp
parent6501db8a85f918625624ca3f32613e44a3652e8e (diff)
downloadetisnoop-77808453cd8e23b08dd15a997161195d5c482b4f.tar.gz
etisnoop-77808453cd8e23b08dd15a997161195d5c482b4f.tar.bz2
etisnoop-77808453cd8e23b08dd15a997161195d5c482b4f.zip
Remove warnings
Diffstat (limited to 'etisnoop.cpp')
-rw-r--r--etisnoop.cpp4
1 files 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);
}