Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/logs.c

    r38d150e rb7fd2a0  
    5252}
    5353
    54 static int create_dest(const char *name, logger_dest_t **dest)
     54static errno_t create_dest(const char *name, logger_dest_t **dest)
    5555{
    5656        logger_dest_t *result = malloc(sizeof(logger_dest_t));
    5757        if (result == NULL)
    5858                return ENOMEM;
    59         int rc = asprintf(&result->filename, "/log/%s", name);
    60         if (rc < 0) {
     59        if (asprintf(&result->filename, "/log/%s", name) < 0) {
    6160                free(result);
    6261                return ENOMEM;
     
    8786                if (result->full_name == NULL)
    8887                        goto error;
    89                 int rc = create_dest(name, &result->dest);
     88                errno_t rc = create_dest(name, &result->dest);
    9089                if (rc != EOK)
    9190                        goto error;
    9291        } else {
    93                 int rc = asprintf(&result->full_name, "%s/%s",
    94                     parent->full_name, name);
    95                 if (rc < 0)
     92                if (asprintf(&result->full_name, "%s/%s",
     93                    parent->full_name, name) < 0)
    9694                        goto error;
    9795                result->dest = parent->dest;
Note: See TracChangeset for help on using the changeset viewer.