Skip to content

Commit 5d0b38b

Browse files
committed
Move comment to the right function
1 parent 0589d27 commit 5d0b38b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/mqtt.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ int __cheri_compartment("MQTT")
137137
*
138138
* `qos` indicates the level of QoS (0, 1, or 2).
139139
*
140+
* `retain` indicates whether the message should be published as retained or
141+
* not. The broker stores the last retained message and the corresponding QoS
142+
* for that topic. Each client that subscribes to a topic pattern that matches
143+
* the topic of the retained message receives the retained message immediately
144+
* after they subscribe. The broker stores only one retained message per topic.
145+
* Retained messages are cleared by publishing a zero length message with the
146+
* retain flag set.
147+
*
140148
* Both the topic and payload buffers must remain valid during the execution of
141149
* this function. If the caller frees them during the execution of this
142150
* function, the publish may leak application data to the broker through the
@@ -182,14 +190,6 @@ int __cheri_compartment("MQTT") mqtt_publish(Timeout *t,
182190
*
183191
* `qos` indicates the level of QoS (0, 1, or 2).
184192
*
185-
* `retain` indicates whether the message should be published as retained or
186-
* not. The broker stores the last retained message and the corresponding QoS
187-
* for that topic. Each client that subscribes to a topic pattern that matches
188-
* the topic of the retained message receives the retained message immediately
189-
* after they subscribe. The broker stores only one retained message per topic.
190-
* Retained messages are cleared by publishing a zero length message with the
191-
* retain flag set.
192-
*
193193
* The filter buffer must remain valid during the execution of this function.
194194
* If the caller frees it during the execution of this function, the subscribe
195195
* may leak application data to the broker through the filter.

0 commit comments

Comments
 (0)