diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-06-25 13:18:54 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-06-25 13:18:54 -0700 |
commit | 02ef9ba1e3c0ed7ab7327c396e9e4b01906437eb (patch) | |
tree | 29c89b2f64a6645c7e72e99cf3a7dc5bacf73704 | |
parent | e0b2b1e085af09af738c37ec7acc1feb5e1063a4 (diff) | |
download | vyatta-op-vpn-02ef9ba1e3c0ed7ab7327c396e9e4b01906437eb.tar.gz vyatta-op-vpn-02ef9ba1e3c0ed7ab7327c396e9e4b01906437eb.zip |
Fix syntax issue
-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(" "); |