Changes in uspace/srv/logger/logs.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logs.c
rb7fd2a0 r38d150e 52 52 } 53 53 54 static errno_t create_dest(const char *name, logger_dest_t **dest)54 static int create_dest(const char *name, logger_dest_t **dest) 55 55 { 56 56 logger_dest_t *result = malloc(sizeof(logger_dest_t)); 57 57 if (result == NULL) 58 58 return ENOMEM; 59 if (asprintf(&result->filename, "/log/%s", name) < 0) { 59 int rc = asprintf(&result->filename, "/log/%s", name); 60 if (rc < 0) { 60 61 free(result); 61 62 return ENOMEM; … … 86 87 if (result->full_name == NULL) 87 88 goto error; 88 errno_t rc = create_dest(name, &result->dest);89 int rc = create_dest(name, &result->dest); 89 90 if (rc != EOK) 90 91 goto error; 91 92 } 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) 94 96 goto error; 95 97 result->dest = parent->dest;
Note:
See TracChangeset
for help on using the changeset viewer.