Changeset 97c7682 in mainline for uspace/lib/c/generic/loc.c
- Timestamp:
- 2012-07-14T11:18:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 804d9b6
- Parents:
- 0747468 (diff), f0348c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loc.c
r0747468 r97c7682 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.