]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
build68k.cpp: minor changes, reduce compiler warnings
authorFrode Solheim <frode-code@fengestad.no>
Sat, 12 Jul 2014 13:30:12 +0000 (15:30 +0200)
committerFrode Solheim <frode-code@fengestad.no>
Sat, 12 Jul 2014 13:30:12 +0000 (15:30 +0200)
build68k.cpp

index be6ed1a662a86a9e15b7549b9173f2cd8b7d9ec9..57ee25159c162b2edee48b0048da9648817870d1 100644 (file)
@@ -6,6 +6,9 @@
  * Copyright 1995,1996 Bernd Schmidt
  */
 
+#include "sysconfig.h"
+#include "sysdeps.h"
+
 #include <stdlib.h>
 #include <tchar.h>
 #include <assert.h>
 
 #define TCHAR char
 
-#include "sysconfig.h"
-#include "sysdeps.h"
-
-
 #include "readcpu.h"
 
 static FILE *tablef;
@@ -227,7 +226,9 @@ int main(int argc, char **argv)
                if (nextch != ':')
                        abort();
 
-               fgets(opcstr, 250, tablef);
+               if (fgets(opcstr, 250, tablef) != opcstr) {
+                       abort();
+               }
                getnextch();
 
                if (nextch == '-') {
@@ -268,7 +269,9 @@ int main(int argc, char **argv)
                                nextch = fgetc (tablef);
                        }
                        if (nextch == ' ') {
-                               fgets(fm, sizeof fm, tablef);
+                               if (fgets(fm, sizeof fm, tablef) != fm) {
+                                       abort();
+                               }
                                if (!strnicmp(fm, "fea", 3))
                                        fetchmode = 1;
                                if (!strnicmp(fm, "cea", 3))