Changes in uspace/srv/net/udp/service.c [bde5c04:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/service.c
rbde5c04 rb7fd2a0 70 70 * @return EOK on success, ENOMEM if out of memory 71 71 */ 72 static int udp_cassoc_queue_msg(udp_cassoc_t *cassoc, inet_ep2_t *epp,72 static errno_t udp_cassoc_queue_msg(udp_cassoc_t *cassoc, inet_ep2_t *epp, 73 73 udp_msg_t *msg) 74 74 { … … 123 123 * @return EOK on soccess, ENOMEM if out of memory 124 124 */ 125 static int udp_cassoc_create(udp_client_t *client, udp_assoc_t *assoc,125 static errno_t udp_cassoc_create(udp_client_t *client, udp_assoc_t *assoc, 126 126 udp_cassoc_t **rcassoc) 127 127 { … … 168 168 * is found. 169 169 */ 170 static int udp_cassoc_get(udp_client_t *client, sysarg_t id,170 static errno_t udp_cassoc_get(udp_client_t *client, sysarg_t id, 171 171 udp_cassoc_t **rcassoc) 172 172 { … … 205 205 * @param rassoc_id Place to store ID of new association 206 206 * 207 * @return EOK on success or negativeerror code208 */ 209 static int udp_assoc_create_impl(udp_client_t *client, inet_ep2_t *epp,207 * @return EOK on success or an error code 208 */ 209 static errno_t udp_assoc_create_impl(udp_client_t *client, inet_ep2_t *epp, 210 210 sysarg_t *rassoc_id) 211 211 { 212 212 udp_assoc_t *assoc; 213 213 udp_cassoc_t *cassoc; 214 int rc;214 errno_t rc; 215 215 216 216 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_create_impl"); … … 252 252 * @return EOK on success, ENOENT if no such association is found 253 253 */ 254 static int udp_assoc_destroy_impl(udp_client_t *client, sysarg_t assoc_id)254 static errno_t udp_assoc_destroy_impl(udp_client_t *client, sysarg_t assoc_id) 255 255 { 256 256 udp_cassoc_t *cassoc; 257 int rc;257 errno_t rc; 258 258 259 259 rc = udp_cassoc_get(client, assoc_id, &cassoc); … … 278 278 * @return EOK on success, ENOENT if no such association is found 279 279 */ 280 static int udp_assoc_set_nolocal_impl(udp_client_t *client, sysarg_t assoc_id)280 static errno_t udp_assoc_set_nolocal_impl(udp_client_t *client, sysarg_t assoc_id) 281 281 { 282 282 udp_cassoc_t *cassoc; 283 int rc;283 errno_t rc; 284 284 285 285 rc = udp_cassoc_get(client, assoc_id, &cassoc); … … 305 305 * @param size Message size 306 306 * 307 * @return EOK on success or negativeerror code308 */ 309 static int udp_assoc_send_msg_impl(udp_client_t *client, sysarg_t assoc_id,307 * @return EOK on success or an error code 308 */ 309 static errno_t udp_assoc_send_msg_impl(udp_client_t *client, sysarg_t assoc_id, 310 310 inet_ep_t *dest, void *data, size_t size) 311 311 { 312 312 udp_msg_t msg; 313 313 udp_cassoc_t *cassoc; 314 int rc;314 errno_t rc; 315 315 316 316 rc = udp_cassoc_get(client, assoc_id, &cassoc); … … 365 365 inet_ep2_t epp; 366 366 sysarg_t assoc_id; 367 int rc;367 errno_t rc; 368 368 369 369 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_create_srv()"); … … 409 409 { 410 410 sysarg_t assoc_id; 411 int rc;411 errno_t rc; 412 412 413 413 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_destroy_srv()"); … … 430 430 { 431 431 sysarg_t assoc_id; 432 int rc;432 errno_t rc; 433 433 434 434 log_msg(LOG_DEFAULT, LVL_NOTE, "udp_assoc_set_nolocal_srv()"); … … 455 455 sysarg_t assoc_id; 456 456 void *data; 457 int rc;457 errno_t rc; 458 458 459 459 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_send_msg_srv()"); … … 552 552 udp_crcv_queue_entry_t *enext; 553 553 sysarg_t assoc_id; 554 int rc;554 errno_t rc; 555 555 556 556 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_rmsg_info_srv()"); … … 601 601 size_t size; 602 602 size_t off; 603 int rc;603 errno_t rc; 604 604 605 605 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_rmsg_read_srv()"); … … 750 750 /** Initialize UDP service. 751 751 * 752 * @return EOK on success or negativeerror code.753 */ 754 int udp_service_init(void)755 { 756 int rc;752 * @return EOK on success or an error code. 753 */ 754 errno_t udp_service_init(void) 755 { 756 errno_t rc; 757 757 service_id_t sid; 758 758
Note:
See TracChangeset
for help on using the changeset viewer.