[riot-notifications] [RIOT-OS/RIOT] nanocoap: change method flag type to uint32_t (#10214)

Leandro Lanzieri notifications at github.com
Tue Mar 5 09:08:24 CET 2019


leandrolanzieri commented on this pull request.



> @@ -250,7 +250,7 @@ typedef ssize_t (*coap_handler_t)(coap_pkt_t *pkt, uint8_t *buf, size_t len, voi
  */
 typedef struct {
     const char *path;               /**< URI path of resource               */
-    unsigned methods;               /**< OR'ed methods this resource allows */
+    uint32_t methods;               /**< OR'ed methods this resource allows */

We should keep in mind that other options (not just methods) may arise in the future, as it is being proposed in #11098, so if we are planning on placing them under this field it might be worth changing it to `uint32_t`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10214#discussion_r262384134
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190305/63ed6100/attachment.html>


More information about the notifications mailing list