aboutsummaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2020-12-25 12:50:00 +0100
committerJan Sucan <jan@jansucan.com>2020-12-25 12:50:00 +0100
commit7a38545d0b8df7216c1300b379a51fb14374a4fa (patch)
treeb49926d37c44428a11ab4a8b6467f65c7d46a4c6 /file.c
parente4ebac4e4dd5b8bc9c86de11489b7f267bf48814 (diff)
Apply clang-format
Diffstat (limited to 'file.c')
-rw-r--r--file.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/file.c b/file.c
index ca22a6b..c6823b9 100644
--- a/file.c
+++ b/file.c
@@ -5,19 +5,18 @@
#include "print.h"
long
-file_size(FILE * const file)
+file_size(FILE *const file)
{
fpos_t p;
- if ((fgetpos(file, &p) != 0)
- || (fseek(file, 0L, SEEK_END) != 0)) {
- return -1;
+ if ((fgetpos(file, &p) != 0) || (fseek(file, 0L, SEEK_END) != 0)) {
+ return -1;
}
const long size = ftell(file);
if (fsetpos(file, &p) != 0) {
- return -1;
+ return -1;
}
return size;