Changeset d5c1051 in mainline for uspace/lib/c/generic/inet/hostport.c
- Timestamp:
- 2017-12-20T22:25:34Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39b54fe
- Parents:
- 8610c2c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/hostport.c
r8610c2c 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.