[riot-notifications] [RIOT-OS/RIOT] sys/net/application_layer/nanocoap: Add path prefix option (#11098)

Ken Bannister notifications at github.com
Fri Mar 8 11:54:12 CET 2019


kb2ma commented on this pull request.



> @@ -399,7 +399,15 @@ static int _find_resource(coap_pkt_t *pdu, const coap_resource_t **resource_ptr,
                 resource++;
             }
 
-            int res = strcmp((char *)&uri[0], resource->path);
+            int res;
+            if ((resource->methods & COAP_MATCH_SUBTREE)) {

Why two sets of parens? Only need one.

-- 
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/11098#pullrequestreview-212233086
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190308/6c9c9c25/attachment.html>


More information about the notifications mailing list