Changes in uspace/srv/logger/logs.c [d5c1051:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logs.c
rd5c1051 rfeeac0d 31 31 */ 32 32 #include <assert.h> 33 #include <malloc.h> 34 #include <str.h> 35 #include <stdio.h> 33 36 #include <errno.h> 34 #include <stdio.h>35 #include <stdlib.h>36 #include <str.h>37 37 #include "logger.h" 38 38 … … 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; … … 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.