projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return isn't a function FFS
[apps/madmutt.git]
/
lib-lib
/
file.c
diff --git
a/lib-lib/file.c
b/lib-lib/file.c
index
4cd3b83
..
ed74aad
100644
(file)
--- a/
lib-lib/file.c
+++ b/
lib-lib/file.c
@@
-70,7
+70,7
@@
int safe_open(const char *path, int flags)
return -1;
}
return -1;
}
- return
(fd)
;
+ return
fd
;
}
}
@@
-226,7
+226,7
@@
FILE *safe_fopen(const char *path, const char *mode)
flags |= (mode[1] == '+' ? O_RDWR : O_WRONLY);
if ((fd = safe_open(path, flags)) < 0)
flags |= (mode[1] == '+' ? O_RDWR : O_WRONLY);
if ((fd = safe_open(path, flags)) < 0)
- return
(NULL)
;
+ return
NULL
;
return fdopen (fd, mode);
}
return fdopen (fd, mode);
}