diff options
Diffstat (limited to 'mq_cmd.c')
-rw-r--r-- | mq_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |