Changeset 46577995 in mainline for uspace/srv/locsrv/locsrv.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/locsrv/locsrv.c
rfacacc71 r46577995 356 356 * Get server name 357 357 */ 358 int rc = async_data_write_accept((void **) &server->name, true, 0,358 errno_t rc = async_data_write_accept((void **) &server->name, true, 0, 359 359 LOC_NAME_MAXLEN, 0, NULL); 360 360 if (rc != EOK) { … … 410 410 * 411 411 */ 412 static int loc_server_unregister(loc_server_t *server)412 static errno_t loc_server_unregister(loc_server_t *server) 413 413 { 414 414 if (server == NULL) … … 471 471 /* Get fqsn */ 472 472 char *fqsn; 473 int rc = async_data_write_accept((void **) &fqsn, true, 0,473 errno_t rc = async_data_write_accept((void **) &fqsn, true, 0, 474 474 LOC_NAME_MAXLEN, 0, NULL); 475 475 if (rc != EOK) { … … 599 599 } 600 600 601 int retval = async_data_read_finalize(callid, cat->name,601 errno_t retval = async_data_read_finalize(callid, cat->name, 602 602 min(size, act_size)); 603 603 … … 647 647 } 648 648 649 int retval = async_data_read_finalize(callid, fqn,649 errno_t retval = async_data_read_finalize(callid, fqn, 650 650 min(size, act_size)); 651 651 free(fqn); … … 694 694 } 695 695 696 int retval = async_data_read_finalize(callid, svc->server->name,696 errno_t retval = async_data_read_finalize(callid, svc->server->name, 697 697 min(size, act_size)); 698 698 … … 743 743 744 744 /* Get fqsn */ 745 int rc = async_data_write_accept((void **) &fqsn, true, 0,745 errno_t rc = async_data_write_accept((void **) &fqsn, true, 0, 746 746 LOC_NAME_MAXLEN, 0, NULL); 747 747 if (rc != EOK) { … … 806 806 807 807 /* Get service name */ 808 int rc = async_data_write_accept((void **) &name, true, 0,808 errno_t rc = async_data_write_accept((void **) &name, true, 0, 809 809 LOC_NAME_MAXLEN, 0, NULL); 810 810 if (rc != EOK) { … … 851 851 * events. 852 852 * 853 * On success, answer will contain EOK int retval.853 * On success, answer will contain EOK errno_t retval. 854 854 * On failure, error code will be sent in retval. 855 855 * … … 895 895 /** Find ID for category specified by name. 896 896 * 897 * On success, answer will contain EOK int retval and service ID in arg1.897 * On success, answer will contain EOK errno_t retval and service ID in arg1. 898 898 * On failure, error code will be sent in retval. 899 899 * … … 905 905 906 906 /* Get service name */ 907 int rc = async_data_write_accept((void **) &name, true, 0,907 errno_t rc = async_data_write_accept((void **) &name, true, 0, 908 908 LOC_NAME_MAXLEN, 0, NULL); 909 909 if (rc != EOK) { … … 972 972 size_t size; 973 973 size_t act_size; 974 int rc;974 errno_t rc; 975 975 976 976 if (!async_data_read_receive(&callid, &size)) { … … 1000 1000 fibril_mutex_unlock(&cdir.mutex); 1001 1001 1002 int retval = async_data_read_finalize(callid, id_buf, size);1002 errno_t retval = async_data_read_finalize(callid, id_buf, size); 1003 1003 free(id_buf); 1004 1004 … … 1047 1047 } 1048 1048 1049 int retval = async_data_read_finalize(callid, desc, size);1049 errno_t retval = async_data_read_finalize(callid, desc, size); 1050 1050 1051 1051 free(desc); … … 1110 1110 } 1111 1111 1112 int retval = async_data_read_finalize(callid, desc, size);1112 errno_t retval = async_data_read_finalize(callid, desc, size); 1113 1113 1114 1114 free(desc); … … 1123 1123 size_t size; 1124 1124 size_t act_size; 1125 int rc;1125 errno_t rc; 1126 1126 1127 1127 if (!async_data_read_receive(&callid, &size)) { … … 1163 1163 fibril_mutex_unlock(&cdir.mutex); 1164 1164 1165 int retval = async_data_read_finalize(callid, id_buf, size);1165 errno_t retval = async_data_read_finalize(callid, id_buf, size); 1166 1166 free(id_buf); 1167 1167 … … 1278 1278 catid_t cat_id; 1279 1279 service_id_t svc_id; 1280 int retval;1280 errno_t retval; 1281 1281 1282 1282 svc_id = IPC_GET_ARG1(*icall); … … 1528 1528 1529 1529 port_id_t port; 1530 int rc = async_create_port(INTERFACE_LOC_SUPPLIER,1530 errno_t rc = async_create_port(INTERFACE_LOC_SUPPLIER, 1531 1531 loc_connection_supplier, NULL, &port); 1532 1532 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.