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