Commit c768e0ad authored by Lionel Gauthier's avatar Lionel Gauthier

Sebastian Held patches15/0024-fix-compiler-warning.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7326 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 66d61540
...@@ -133,7 +133,7 @@ int prompt_usage(char *); ...@@ -133,7 +133,7 @@ int prompt_usage(char *);
int info(char *arg); int info(char *arg);
int start(char *arg), set(char *arg); int start(char *arg), set(char *arg);
int start_usage(char *), set_usage(void); int start_usage(char *), set_usage(char *);
/* Forward declarations. */ /* Forward declarations. */
char *stripwhite (char *string); char *stripwhite (char *string);
......
...@@ -162,7 +162,7 @@ int set(char *arg) ...@@ -162,7 +162,7 @@ int set(char *arg)
return OK; return OK;
if (valid_argument ("set", arg) == ERR) { if (valid_argument ("set", arg) == ERR) {
set_usage(); set_usage( NULL );
return ERR; return ERR;
} }
...@@ -319,8 +319,9 @@ int start_usage(char *arg) ...@@ -319,8 +319,9 @@ int start_usage(char *arg)
return 0; return 0;
} }
int set_usage(void) int set_usage( char *arg )
{ {
(void)(arg); // unused
sprintf(buffer, "Usage: set log [comp] [level:debug,info,warn,error][flag:none,low,med,full][intervale: 1-100] \n"); sprintf(buffer, "Usage: set log [comp] [level:debug,info,warn,error][flag:none,low,med,full][intervale: 1-100] \n");
send(cli_cfg->cfd, buffer, strlen(buffer), 0); send(cli_cfg->cfd, buffer, strlen(buffer), 0);
sprintf(buffer, "Example 1: set log omg debug\n"); sprintf(buffer, "Example 1: set log omg debug\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment