Changeset 46577995 in mainline for uspace/srv/net/udp/assoc.c
- Timestamp:
- 2018-01-04T20:50:52Z (7 years ago)
- Children:
- e211ea04
- Parents:
- facacc71
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/assoc.c
rfacacc71 r46577995 56 56 57 57 static udp_assoc_t *udp_assoc_find_ref(inet_ep2_t *); 58 static int udp_assoc_queue_msg(udp_assoc_t *, inet_ep2_t *, udp_msg_t *);58 static errno_t udp_assoc_queue_msg(udp_assoc_t *, inet_ep2_t *, udp_msg_t *); 59 59 60 60 /** Initialize associations. */ 61 int udp_assocs_init(void)62 { 63 int rc;61 errno_t udp_assocs_init(void) 62 { 63 errno_t rc; 64 64 65 65 rc = amap_create(&amap); … … 182 182 * Add association to the association map. 183 183 */ 184 int udp_assoc_add(udp_assoc_t *assoc)184 errno_t udp_assoc_add(udp_assoc_t *assoc) 185 185 { 186 186 inet_ep2_t aepp; 187 int rc;187 errno_t rc; 188 188 189 189 udp_assoc_addref(assoc); … … 242 242 * EIO if no route to destination exists 243 243 */ 244 int udp_assoc_send(udp_assoc_t *assoc, inet_ep_t *remote, udp_msg_t *msg)244 errno_t udp_assoc_send(udp_assoc_t *assoc, inet_ep_t *remote, udp_msg_t *msg) 245 245 { 246 246 udp_pdu_t *pdu; 247 247 inet_ep2_t epp; 248 int rc;248 errno_t rc; 249 249 250 250 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_send(%p, %p, %p)", … … 302 302 * Pull one message from the association's receive queue. 303 303 */ 304 int udp_assoc_recv(udp_assoc_t *assoc, udp_msg_t **msg, inet_ep_t *remote)304 errno_t udp_assoc_recv(udp_assoc_t *assoc, udp_msg_t **msg, inet_ep_t *remote) 305 305 { 306 306 link_t *link; … … 341 341 { 342 342 udp_assoc_t *assoc; 343 int rc;343 errno_t rc; 344 344 345 345 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_received(%p, %p)", repp, msg); … … 380 380 } 381 381 382 static int udp_assoc_queue_msg(udp_assoc_t *assoc, inet_ep2_t *epp,382 static errno_t udp_assoc_queue_msg(udp_assoc_t *assoc, inet_ep2_t *epp, 383 383 udp_msg_t *msg) 384 384 { … … 416 416 static udp_assoc_t *udp_assoc_find_ref(inet_ep2_t *epp) 417 417 { 418 int rc;418 errno_t rc; 419 419 void *arg; 420 420 udp_assoc_t *assoc;
Note:
See TracChangeset
for help on using the changeset viewer.