Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
csirmaz committed Dec 29, 2014
1 parent c35de88 commit 11b24a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion block.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion fuse_path_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11b24a5

Please # to comment.