summaryrefslogtreecommitdiff
path: root/mq_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mq_cmd.c')
-rw-r--r--mq_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mq_cmd.c b/mq_cmd.c
index ce48713..8956bfc 100644
--- a/mq_cmd.c
+++ b/mq_cmd.c
@@ -41,7 +41,7 @@ mq_cmd* mq_cmd_create(int id, char *cmd, size_t cmd_sz, char *param, size_t para
return ret;
}
-mq_cmd* mq_cmd_creates(char *str, size_t sz)
+mq_cmd* mq_cmd_creates(char *str, size_t sz, int id)
{
mq_cmd *ret = NULL;
@@ -55,7 +55,7 @@ mq_cmd* mq_cmd_creates(char *str, size_t sz)
}
ret->sz = sz;
memcpy(ret->buf,str,sz);
- ret->id = -1;
+ ret->id = id;
return ret;
}