diff options
-rw-r--r-- | src/command_proc_show_vpn.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command_proc_show_vpn.cc b/src/command_proc_show_vpn.cc index 252c27e..6f2ed0a 100644 --- a/src/command_proc_show_vpn.cc +++ b/src/command_proc_show_vpn.cc @@ -27,6 +27,8 @@ #include <list> #include <string> #include <dirent.h> +#include <string.h> +#include <stdlib.h> //#include "config.h" #include "rl_str_proc.hh" //#include <librl_common/rl_interface.hh> @@ -41,7 +43,7 @@ int main(int argc, char ** argv) { string request; bool debug = false; for (int i = 1; i < argc; ++i) { - if (strcmp(argv[i], "--debug") == 0) { + if (strcmp((const char *)argv[i], "--debug") == 0) { debug = true; } else { request += string(argv[i]) + string(" "); |