]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - exec.c
More cleanups
[xonotic/gmqcc.git] / exec.c
diff --git a/exec.c b/exec.c
index 8f68d5c3c0629421d207a1da59f512c048446497..92d1e2426be19bcca036c7f2b330105cb27706ea 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -53,9 +53,9 @@ static void qcvmerror(qc_program_t *prog, const char *fmt, ...)
 
 qc_program_t* prog_load(const char *filename, bool skipversion)
 {
-    qc_program_t   *prog;
     prog_header_t   header;
-    FILE         *file  = fs_file_open(filename, "rb");
+    qc_program_t   *prog;
+    fs_file_t      *file  = fs_file_open(filename, "rb");
 
     if (!file)
         return NULL;
@@ -351,7 +351,7 @@ static void trace_print_global(qc_program_t *prog, unsigned int glob, int vtype)
 done:
     if (len < (int)sizeof(spaces)-1) {
         spaces[sizeof(spaces)-1-len] = 0;
-        fs_file_puts(stdout, spaces);
+        fs_file_puts((fs_file_t*)stdout, spaces);
         spaces[sizeof(spaces)-1-len] = ' ';
     }
 }