[riot-notifications] [RIOT-OS/RIOT] net/gcoap: fix sock send return type (#8580)

Ken Bannister notifications at github.com
Fri Feb 16 19:37:25 CET 2018


### Contribution description
During the review for #7337, I found that gcoap assumed the return type for gcoap_udp_send() was of type `size_t`, but really it is of type `ssize_t`. This PR fixes that error. I also added a debug statement to show the error code from an invocation of gcoap_udp_send().

### Issues/PRs references
[Discussion](https://github.com/RIOT-OS/RIOT/pull/7337#issuecomment-357868126) in the earlier PR.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/8580

-- Commit Summary --

  * net/gcoap: fix sock send return type

-- File Changes --

    M sys/net/application_layer/gcoap/gcoap.c (16)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/8580.patch
https://github.com/RIOT-OS/RIOT/pull/8580.diff

-- 
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/8580
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180216/f34d3d73/attachment.html>


More information about the notifications mailing list