Changes in uspace/lib/c/generic/loc.c [c1f27f1d:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loc.c
rc1f27f1d r3e6a98c5 37 37 #include <errno.h> 38 38 #include <malloc.h> 39 #include < bool.h>39 #include <stdbool.h> 40 40 41 41 static FIBRIL_MUTEX_INITIALIZE(loc_supp_block_mutex); … … 246 246 247 247 if (retval != EOK) { 248 async_ wait_for(req, NULL);248 async_forget(req); 249 249 return retval; 250 250 } … … 285 285 286 286 if (retval != EOK) { 287 async_ wait_for(req, NULL);287 async_forget(req); 288 288 return retval; 289 289 } … … 352 352 353 353 if (retval != EOK) { 354 async_ wait_for(req, NULL);354 async_forget(req); 355 355 return retval; 356 356 } … … 401 401 402 402 if (dretval != EOK) { 403 async_ wait_for(req, NULL);403 async_forget(req); 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 ID 457 * @param name Place to store pointer to new string. Caller should 458 * free it using free(). 459 * @return EOK on success or negative error code 460 */ 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); 450 464 } 451 465 … … 471 485 472 486 if (retval != EOK) { 473 async_ wait_for(req, NULL);487 async_forget(req); 474 488 return retval; 475 489 } … … 520 534 521 535 if (retval != EOK) { 522 async_ wait_for(req, NULL);536 async_forget(req); 523 537 return retval; 524 538 } … … 683 697 684 698 if (rc != EOK) { 685 async_ wait_for(req, NULL);699 async_forget(req); 686 700 free(devs); 687 701 return 0; … … 732 746 733 747 if (rc != EOK) { 734 async_ wait_for(req, NULL);748 async_forget(req); 735 749 free(devs); 736 750 return 0; … … 760 774 761 775 if (rc != EOK) { 762 async_ wait_for(req, NULL);776 async_forget(req); 763 777 return rc; 764 778 }
Note:
See TracChangeset
for help on using the changeset viewer.