Changeset 1c6c3e1d in mainline for uspace/srv/net/ethip/ethip.c
- Timestamp:
- 2023-10-22T17:55:33Z (14 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 350ec74
- Parents:
- 315d487 (diff), 133461c (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/srv/net/ethip/ethip.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 78 78 }; 79 79 80 static loc_srv_t *ethip_srv; 81 80 82 static errno_t ethip_init(void) 81 83 { 82 84 async_set_fallback_port_handler(ethip_client_conn, NULL); 83 85 84 errno_t rc = loc_server_register(NAME );86 errno_t rc = loc_server_register(NAME, ðip_srv); 85 87 if (rc != EOK) { 86 88 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server."); … … 115 117 } 116 118 117 rc = loc_service_register( svc_name, &sid);119 rc = loc_service_register(ethip_srv, svc_name, &sid); 118 120 if (rc != EOK) { 119 121 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service %s.", svc_name); … … 129 131 } 130 132 131 rc = loc_service_add_to_cat( sid, iplink_cat);133 rc = loc_service_add_to_cat(ethip_srv, sid, iplink_cat); 132 134 if (rc != EOK) { 133 135 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed adding %s to category.", svc_name);
Note:
See TracChangeset
for help on using the changeset viewer.