diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-04 17:54:09 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-04 18:26:44 +0100 |
commit | 173ef90a539dc33bb8fc395c0315320a4525a8d6 (patch) | |
tree | fb6896e7eeb357689750ed8ab6fd86f3e8926e6d /src | |
parent | fd263b0dfd0ec44216c607b96e167f1027e404c6 (diff) |
pcu: Fix compiler warning about using string
Make the gsmtap hostname const to avoid turning a constant into
a mutable character. We never tried to modify the string so the
warning didn't reveal a genuine issue.
pcu_main.cpp:49:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
static char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead
Diffstat (limited to 'src')
-rw-r--r-- | src/pcu_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index 4126d063..f66c6310 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -46,7 +46,7 @@ void *tall_pcu_ctx; extern void *bv_tall_ctx; static int quit = 0; static int rt_prio = -1; -static char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead +static const char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead static void print_help() { |