summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--com32/lib/syslinux/loadfile.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/com32/lib/syslinux/loadfile.c b/com32/lib/syslinux/loadfile.c
index 7ad8e817..fa96c656 100644
--- a/com32/lib/syslinux/loadfile.c
+++ b/com32/lib/syslinux/loadfile.c
@@ -43,21 +43,21 @@
#define INCREMENTAL_CHUNK 1024*1024
-int loadfile(const char *filename, void **ptr, size_t *len)
+int loadfile(const char *filename, void **ptr, size_t * len)
{
- FILE *f;
- int rv, e;
+ FILE *f;
+ int rv, e;
- f = fopen(filename, "r");
- if ( !f )
- return -1;
+ f = fopen(filename, "r");
+ if (!f)
+ return -1;
- rv = floadfile(f, ptr, len, NULL, 0);
- e = errno;
+ rv = floadfile(f, ptr, len, NULL, 0);
+ e = errno;
- fclose(f);
+ fclose(f);
- if (rv)
- errno = e;
- return rv;
+ if (rv)
+ errno = e;
+ return rv;
}