aboutsummaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2020-12-24 11:30:06 +0100
committerJan Sucan <jan@jansucan.com>2020-12-24 11:30:06 +0100
commit42c87a3dd2b926905db944ab7637d74db0d88ae6 (patch)
treebb7614455f09eee44b21f6b10d0f44a4de6c6523 /file.c
parent6ea7dffe9afcb9531fbf20c66718801d9805d940 (diff)
Remove trailing whitespaces
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index c20419a..ca22a6b 100644
--- a/file.c
+++ b/file.c
@@ -8,17 +8,17 @@ long
file_size(FILE * const file)
{
fpos_t p;
-
+
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 size;
}