Changes in uspace/lib/c/generic/inet/hostport.c [a62ceaf:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/hostport.c
ra62ceaf rd5c1051 140 140 { 141 141 int rc; 142 int ret; 142 143 char *astr, *str; 143 144 char *hstr = NULL; … … 154 155 hstr = astr; 155 156 } else { 156 r c= asprintf(&hstr, "[%s]", astr);157 if (r c< 0) {157 ret = asprintf(&hstr, "[%s]", astr); 158 if (ret < 0) { 158 159 free(astr); 159 160 return ENOMEM; … … 171 172 } 172 173 173 r c= asprintf(&str, "%s:%u", hstr, hp->port);174 if (r c< 0)174 ret = asprintf(&str, "%s:%u", hstr, hp->port); 175 if (ret < 0) 175 176 return ENOMEM; 176 177
Note:
See TracChangeset
for help on using the changeset viewer.