mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Fix misc warnings and nits
This commit is contained in:
1 parent
eacc64bdd1
commit
94fce72ade
3 files changed
+4
-5
No files matched your search
+1
-1
@@ -285,7 +285,7 @@ static void mqtt_fn(struct mg_connection *c, int ev, void *ev_data) {
|
||||
*(bool *) c->fn_data = true;
|
||||
} else if (mm->data.len == 21098) {
|
||||
struct mg_mqtt_opts pub_opts;
|
||||
ASSERT(memcmp((const char *) mqtt_fn, mm->data.buf, 21098) == 0);
|
||||
ASSERT(memcmp((const char *) (size_t) mqtt_fn, mm->data.buf, 21098) == 0);
|
||||
// send farewell after receiving big data
|
||||
memset(&pub_opts, 0, sizeof(pub_opts));
|
||||
pub_opts.topic = mm->topic;
|
||||
|
||||
Reference in new issue
Block a user