]> git.mxchange.org Git - flightgear.git/blobdiff - Scenery/texload.c
Incorporated code changes contributed by Charlie Hotchkiss
[flightgear.git] / Scenery / texload.c
index 0995f1654c0fb8498bae6d4df1e3230a16a1d012..dde6c85da7c41ff2da597c62b598ac00df8175ce 100644 (file)
@@ -65,10 +65,11 @@ ConvertUint(unsigned *array, unsigned int length) {
 
 static ImageRec *ImageOpen(char *fileName)
 {
-    union {
-        int testWord;
-        char testByte[4];
-    } endianTest;
+     union {
+       int testWord;
+       char testByte[4];
+     } endianTest;
+
     ImageRec *image;
     int swapFlag;
     int x;
@@ -86,7 +87,7 @@ static ImageRec *ImageOpen(char *fileName)
         exit(1);
     }
     if ((image->file = fopen(fileName, "rb")) == NULL) {
-       return NULL;
+      return NULL;
     }
 
     fread(image, 1, 12, image->file);