Changes in uspace/lib/c/generic/inet/hostport.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/hostport.c
rb7fd2a0 rd5c1051 56 56 * extra characters at the end. ENOMEM if out of memory 57 57 */ 58 errno_t inet_hostport_parse(const char *str, inet_hostport_t **rhp,58 int inet_hostport_parse(const char *str, inet_hostport_t **rhp, 59 59 char **endptr) 60 60 { … … 65 65 char *aend; 66 66 const char *pend; 67 errno_t rc;67 int rc; 68 68 69 69 hp = calloc(1, sizeof(inet_hostport_t)); … … 137 137 * @return EOK on success, ENOMEM if out of memory 138 138 */ 139 errno_t inet_hostport_format(inet_hostport_t *hp, char **rstr)140 { 141 errno_t rc;139 int inet_hostport_format(inet_hostport_t *hp, char **rstr) 140 { 141 int rc; 142 142 int ret; 143 143 char *astr, *str; … … 211 211 * @return EOK on success, ENOENT on resolution failure 212 212 */ 213 errno_t inet_hostport_lookup_one(inet_hostport_t *hp, ip_ver_t version,213 int inet_hostport_lookup_one(inet_hostport_t *hp, ip_ver_t version, 214 214 inet_ep_t *ep) 215 215 { 216 216 dnsr_hostinfo_t *hinfo = NULL; 217 errno_t rc;217 int rc; 218 218 219 219 inet_ep_init(ep); … … 255 255 * ENOMEM if out of memory 256 256 */ 257 errno_t inet_hostport_plookup_one(const char *str, ip_ver_t version, inet_ep_t *ep,257 int inet_hostport_plookup_one(const char *str, ip_ver_t version, inet_ep_t *ep, 258 258 char **endptr, const char **errmsg) 259 259 { 260 260 inet_hostport_t *hp = NULL; 261 261 char *eptr; 262 errno_t rc;262 int rc; 263 263 264 264 rc = inet_hostport_parse(str, &hp, endptr != NULL ? &eptr : NULL);
Note:
See TracChangeset
for help on using the changeset viewer.