Changes in uspace/srv/locsrv/locsrv.c [c1694b6b:adb1ae9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
rc1694b6b radb1ae9 47 47 #include <stdlib.h> 48 48 #include <str.h> 49 #include <str_error.h>50 49 #include <ipc/loc.h> 51 50 #include <assert.h> … … 1348 1347 categ_dir_add_cat(&cdir, cat); 1349 1348 1350 cat = category_new("console");1351 categ_dir_add_cat(&cdir, cat);1352 1353 1349 cat = category_new("clock"); 1354 1350 categ_dir_add_cat(&cdir, cat); … … 1530 1526 int rc = async_create_port(INTERFACE_LOC_SUPPLIER, 1531 1527 loc_connection_supplier, NULL, &port); 1532 if (rc != EOK) { 1533 printf("%s: Error while creating supplier port: %s\n", NAME, str_error(rc)); 1528 if (rc != EOK) 1534 1529 return rc; 1535 }1536 1530 1537 1531 rc = async_create_port(INTERFACE_LOC_CONSUMER, 1538 1532 loc_connection_consumer, NULL, &port); 1539 if (rc != EOK) { 1540 printf("%s: Error while creating consumer port: %s\n", NAME, str_error(rc)); 1533 if (rc != EOK) 1541 1534 return rc; 1542 }1543 1535 1544 1536 /* Set a handler of incomming connections */ … … 1547 1539 /* Register location service at naming service */ 1548 1540 rc = service_register(SERVICE_LOC); 1549 if (rc != EOK) { 1550 printf("%s: Error while registering service: %s\n", NAME, str_error(rc)); 1541 if (rc != EOK) 1551 1542 return rc; 1552 }1553 1543 1554 1544 printf("%s: Accepting connections\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.