Changes in uspace/lib/c/generic/loc.c [3e6a98c5:c1f27f1d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loc.c
r3e6a98c5 rc1f27f1d 37 37 #include <errno.h> 38 38 #include <malloc.h> 39 #include < stdbool.h>39 #include <bool.h> 40 40 41 41 static FIBRIL_MUTEX_INITIALIZE(loc_supp_block_mutex); … … 246 246 247 247 if (retval != EOK) { 248 async_ forget(req);248 async_wait_for(req, NULL); 249 249 return retval; 250 250 } … … 285 285 286 286 if (retval != EOK) { 287 async_ forget(req);287 async_wait_for(req, NULL); 288 288 return retval; 289 289 } … … 352 352 353 353 if (retval != EOK) { 354 async_ forget(req);354 async_wait_for(req, NULL); 355 355 return retval; 356 356 } … … 401 401 402 402 if (dretval != EOK) { 403 async_ forget(req);403 async_wait_for(req, NULL); 404 404 return dretval; 405 405 } … … 448 448 { 449 449 return loc_get_name_internal(LOC_SERVICE_GET_NAME, svc_id, name); 450 }451 452 /** Get service server name.453 *454 * Provided ID of a service, return the name of its server.455 *456 * @param svc_id Service ID457 * @param name Place to store pointer to new string. Caller should458 * free it using free().459 * @return EOK on success or negative error code460 */461 int loc_service_get_server_name(service_id_t svc_id, char **name)462 {463 return loc_get_name_internal(LOC_SERVICE_GET_SERVER_NAME, svc_id, name);464 450 } 465 451 … … 485 471 486 472 if (retval != EOK) { 487 async_ forget(req);473 async_wait_for(req, NULL); 488 474 return retval; 489 475 } … … 534 520 535 521 if (retval != EOK) { 536 async_ forget(req);522 async_wait_for(req, NULL); 537 523 return retval; 538 524 } … … 697 683 698 684 if (rc != EOK) { 699 async_ forget(req);685 async_wait_for(req, NULL); 700 686 free(devs); 701 687 return 0; … … 746 732 747 733 if (rc != EOK) { 748 async_ forget(req);734 async_wait_for(req, NULL); 749 735 free(devs); 750 736 return 0; … … 774 760 775 761 if (rc != EOK) { 776 async_ forget(req);762 async_wait_for(req, NULL); 777 763 return rc; 778 764 }
Note:
See TracChangeset
for help on using the changeset viewer.