Changeset dc5c303 in mainline for uspace/srv/net/inetsrv/inetsrv.c
- Timestamp:
- 2023-12-28T13:59:23Z (14 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (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. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r42c2e65 rdc5c303 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 86 86 static errno_t inet_init(void) 87 87 { 88 loc_srv_t *srv; 89 88 90 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 89 91 … … 104 106 return rc; 105 107 106 rc = loc_server_register(NAME );108 rc = loc_server_register(NAME, &srv); 107 109 if (rc != EOK) { 108 110 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc)); … … 111 113 112 114 service_id_t sid; 113 rc = loc_service_register(SERVICE_NAME_INET, &sid); 114 if (rc != EOK) { 115 rc = loc_service_register(srv, SERVICE_NAME_INET, &sid); 116 if (rc != EOK) { 117 loc_server_unregister(srv); 115 118 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service: %s.", str_error(rc)); 116 119 return EEXIST;
Note:
See TracChangeset
for help on using the changeset viewer.