Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r38d150e  
    5252}
    5353
    54 static errno_t create_dest(const char *name, logger_dest_t **dest)
     54static int 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         if (asprintf(&result->filename, "/log/%s", name) < 0) {
     59        int rc = asprintf(&result->filename, "/log/%s", name);
     60        if (rc < 0) {
    6061                free(result);
    6162                return ENOMEM;
     
    8687                if (result->full_name == NULL)
    8788                        goto error;
    88                 errno_t rc = create_dest(name, &result->dest);
     89                int rc = create_dest(name, &result->dest);
    8990                if (rc != EOK)
    9091                        goto error;
    9192        } else {
    92                 if (asprintf(&result->full_name, "%s/%s",
    93                     parent->full_name, name) < 0)
     93                int rc = asprintf(&result->full_name, "%s/%s",
     94                    parent->full_name, name);
     95                if (rc < 0)
    9496                        goto error;
    9597                result->dest = parent->dest;
Note: See TracChangeset for help on using the changeset viewer.