Changes in uspace/lib/c/generic/inet/host.c [b7fd2a0:a62ceaf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/host.c
rb7fd2a0 ra62ceaf 54 54 * extra characters at the end. ENOMEM if out of memory 55 55 */ 56 errno_t inet_host_parse(const char *str, inet_host_t **rhost,56 int inet_host_parse(const char *str, inet_host_t **rhost, 57 57 char **endptr) 58 58 { … … 61 61 char *name; 62 62 char *aend; 63 errno_t rc;63 int rc; 64 64 65 65 host = calloc(1, sizeof(inet_host_t)); … … 106 106 * @return EOK on success, ENOMEM if out of memory 107 107 */ 108 errno_t inet_host_format(inet_host_t *host, char **rstr)109 { 110 errno_t rc;108 int inet_host_format(inet_host_t *host, char **rstr) 109 { 110 int rc; 111 111 char *str = NULL; 112 112 … … 161 161 * @reutrn EOK on success, ENOENT on resolurion failure 162 162 */ 163 errno_t inet_host_lookup_one(inet_host_t *host, ip_ver_t version, inet_addr_t *addr)163 int inet_host_lookup_one(inet_host_t *host, ip_ver_t version, inet_addr_t *addr) 164 164 { 165 165 dnsr_hostinfo_t *hinfo = NULL; 166 errno_t rc;166 int rc; 167 167 168 168 switch (host->hform) { … … 201 201 * ENOMEM if out of memory 202 202 */ 203 errno_t inet_host_plookup_one(const char *str, ip_ver_t version, inet_addr_t *addr,203 int inet_host_plookup_one(const char *str, ip_ver_t version, inet_addr_t *addr, 204 204 char **endptr, const char **errmsg) 205 205 { 206 206 inet_host_t *host = NULL; 207 207 char *eptr; 208 errno_t rc;208 int rc; 209 209 210 210 rc = inet_host_parse(str, &host, endptr != NULL ? &eptr : NULL);
Note:
See TracChangeset
for help on using the changeset viewer.