diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-03-10 05:25:28 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-03-10 05:37:01 +0100 |
commit | 0c900704e7e9ad6732baf0e61b6817d76fc01fed (patch) | |
tree | f6899b3e29539e5b13e15a3a715b083ec441244a | |
parent | 6c767d1e1a1815fbd4d2b196fb92a0d85cfde5b2 (diff) |
Add type specifier for int
-rw-r--r-- | src/bootchart/bootchart.c | 2 | ||||
-rw-r--r-- | src/shared/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index 158f8a908c..99ffb86c87 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -272,7 +272,7 @@ static void do_journal_append(char *file) { ssize_t n; _cleanup_free_ char *bootchart_file = NULL, *bootchart_message = NULL, *p = NULL; - _cleanup_close_ fd = -1; + _cleanup_close_ int fd = -1; bootchart_file = strappend("BOOTCHART_FILE=", file); if (bootchart_file) diff --git a/src/shared/util.c b/src/shared/util.c index a13819e79a..b90e10ffb2 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2592,7 +2592,7 @@ char* dirname_malloc(const char *path) { int dev_urandom(void *p, size_t n) { static int have_syscall = -1; - _cleanup_close_ fd = -1; + _cleanup_close_ int fd = -1; int r; /* Gathers some randomness from the kernel. This call will |