diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-05-20 15:28:07 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-05-20 15:28:07 +0100 |
commit | f5e6f56a82e56cfd72a0e2f1ce9b583398636545 (patch) | |
tree | a8705da438f341dc7a329db964747bf3ad379936 /cmd/cmd_cmd.c | |
parent | eca4a1364bc1313fe0c40c07b7776d3fd8a8e6fc (diff) | |
download | agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.tar.gz agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.zip |
Fixed warnings all over the code
Diffstat (limited to 'cmd/cmd_cmd.c')
-rw-r--r-- | cmd/cmd_cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/cmd_cmd.c b/cmd/cmd_cmd.c index e893687..0eabfe1 100644 --- a/cmd/cmd_cmd.c +++ b/cmd/cmd_cmd.c @@ -2,17 +2,15 @@ void *cmd_cmd(void *data) { + char *param = (char *)data; char *ret = NULL; - int fret=-1; const int buf_size = 128; char buf[buf_size+1]; printf("CMD\n"); - snprintf(buf, buf_size, "%s\n", data); - - + snprintf(buf, buf_size, "%s\n", param); ret = alloc_new_str(buf); |