Changeset 132ab5d1 in mainline for uspace/srv/logger/logs.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    3131 */
    3232#include <assert.h>
    33 #include <malloc.h>
     33#include <errno.h>
     34#include <stdio.h>
     35#include <stdlib.h>
    3436#include <str.h>
    35 #include <stdio.h>
    36 #include <errno.h>
    3737#include "logger.h"
    3838
     
    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;
     
    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.