summaryrefslogtreecommitdiff
path: root/cmd/cmd_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_cmd.c')
-rw-r--r--cmd/cmd_cmd.c6
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);