diff options
Diffstat (limited to 'src/switchroot/ostree-mount-util.h')
-rw-r--r-- | src/switchroot/ostree-mount-util.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/switchroot/ostree-mount-util.h b/src/switchroot/ostree-mount-util.h index 92bc8027..9d79f0cb 100644 --- a/src/switchroot/ostree-mount-util.h +++ b/src/switchroot/ostree-mount-util.h @@ -22,13 +22,13 @@ #define __OSTREE_MOUNT_UTIL_H_ #include <err.h> +#include <fcntl.h> +#include <stdbool.h> +#include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/statvfs.h> -#include <stdio.h> #include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include <stdbool.h> #define INITRAMFS_MOUNT_VAR "/run/ostree/initramfs-mount-var" #define _OSTREE_SYSROOT_READONLY_STAMP "/run/ostree-sysroot-ro.stamp" @@ -47,7 +47,7 @@ path_is_on_readonly_fs (const char *path) static inline char * read_proc_cmdline (void) { - FILE *f = fopen("/proc/cmdline", "r"); + FILE *f = fopen ("/proc/cmdline", "r"); char *cmdline = NULL; size_t len; @@ -64,8 +64,8 @@ read_proc_cmdline (void) */ len = strlen (cmdline); - if (cmdline[len-1] == '\n') - cmdline[len-1] = '\0'; + if (cmdline[len - 1] == '\n') + cmdline[len - 1] = '\0'; out: if (f) fclose (f); @@ -118,7 +118,7 @@ touch_run_ostree (void) */ if (fd == -1) return; - (void) close (fd); + (void)close (fd); } #endif /* __OSTREE_MOUNT_UTIL_H_ */ |