From 11b24a507eab5b190b432230797111286ca04512 Mon Sep 17 00:00:00 2001 From: Elod Csirmaz Date: Mon, 29 Dec 2014 00:40:04 +0000 Subject: [PATCH] Tidy --- block.c | 2 +- fuse_path_open.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index e4c95f6..b02bdcc 100644 --- a/block.c +++ b/block.c @@ -317,7 +317,7 @@ static inline int $b_write( // Nothing to do if the main file is read-only or there are no snapshots or the file was empty in the snapshot if(mfd->datfd < 0 || writesize == 0) { return 0; } - if(flags & $$B_WRITE_HAS_LOCK){ lock = -2; } + if(flags & $$B_WRITE_HAS_LOCK) { lock = -2; } $dlogdbg("b_write: woffset='%zu' wsize='%td' filesize_in_sn='%zu'\n", writeoffset, writesize, mfd->mapheader.fstat.st_size); diff --git a/fuse_path_open.c b/fuse_path_open.c index 8dde297..87da2ef 100644 --- a/fuse_path_open.c +++ b/fuse_path_open.c @@ -66,7 +66,7 @@ static inline int $_open_truncate_close(struct $fsdata_t *fsdata, const char *pa ret = open(fpath, O_RDONLY); if(unlikely(ret == -1)) { waserror = errno; - if(waserror == ENOENT){ + if(waserror == ENOENT) { // The main file no longer exists so there's nothing to do $dlogdbg("_open_truncate_close(%s): main file no longer exists\n", fpath); waserror = 0;