mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
make it C89-friendly
This commit is contained in:
1 parent
bf059ad42f
commit
52ab6bc499
4 files changed
+311
-293
No files matched your search
+5
-3
@@ -619,9 +619,11 @@ static void test_mqtt_basic(void) {
|
||||
|
||||
#if MG_TLS
|
||||
// send more than 1 record, content is not relevant
|
||||
static char somedata[21098];
|
||||
mg_random(somedata, sizeof(somedata));
|
||||
opts.message = mg_str_n(somedata, sizeof(somedata));
|
||||
{
|
||||
static char somedata[21098];
|
||||
mg_random(somedata, sizeof(somedata));
|
||||
opts.message = mg_str_n(somedata, sizeof(somedata));
|
||||
}
|
||||
opts.qos = 1, opts.retain = false, opts.retransmit_id = 0;
|
||||
mg_mqtt_pub(c, &opts);
|
||||
tbuf[0] = 0;
|
||||
|
||||
Reference in new issue
Block a user