Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/hostport.c

    rd5c1051 ra62ceaf  
    140140{
    141141        int rc;
    142         int ret;
    143142        char *astr, *str;
    144143        char *hstr = NULL;
     
    155154                        hstr = astr;
    156155                } else {
    157                         ret = asprintf(&hstr, "[%s]", astr);
    158                         if (ret < 0) {
     156                        rc = asprintf(&hstr, "[%s]", astr);
     157                        if (rc < 0) {
    159158                                free(astr);
    160159                                return ENOMEM;
     
    172171        }
    173172
    174         ret = asprintf(&str, "%s:%u", hstr, hp->port);
    175         if (ret < 0)
     173        rc = asprintf(&str, "%s:%u", hstr, hp->port);
     174        if (rc < 0)
    176175                return ENOMEM;
    177176
Note: See TracChangeset for help on using the changeset viewer.