From fad16b5c60b3d359c2f1fc920f938ce23f02f81a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 21 Mar 2015 09:42:15 +0100 Subject: [PATCH] (file_ops.c) Cleanups --- file_ops.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/file_ops.c b/file_ops.c index c1e63ddc01..ebaa554fd2 100644 --- a/file_ops.c +++ b/file_ops.c @@ -87,11 +87,10 @@ bool write_file(const char *path, const void *data, ssize_t size) */ static int read_generic_file(const char *path, void **buf, ssize_t *len) { - long ret = 0; + long ret = 0; size_t content_buf_size = 0; void *content_buf = NULL; - - FILE *file = fopen(path, "rb"); + FILE *file = fopen(path, "rb"); if (!file) goto error; @@ -99,7 +98,7 @@ static int read_generic_file(const char *path, void **buf, ssize_t *len) if (fseek(file, 0, SEEK_END) != 0) goto error; - content_buf_size = ftell(file); + content_buf_size = ftell(file); if (content_buf_size < 0) goto error;