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

Martine Lenders notifications at github.com
Tue Feb 26 21:42:31 CET 2019

miri64 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 */

A solution tipsy @cladmi is screaming at me would also be to define a `coap_method_flags_t` and 
(and set it to `uint8_t` for now) and be super-extensible in the future (just change the type definition ;-) and maybe some macros).

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190226/cba5a735/attachment.html>

More information about the notifications mailing list