From 7a38545d0b8df7216c1300b379a51fb14374a4fa Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Fri, 25 Dec 2020 12:50:00 +0100 Subject: Apply clang-format --- file.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'file.c') 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; -- cgit v1.2.3