]> granicus.if.org Git - file/commitdiff
re-arrange so that it fits in 64 bit machines.
authorChristos Zoulas <christos@zoulas.com>
Tue, 31 Oct 2006 20:46:23 +0000 (20:46 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 31 Oct 2006 20:46:23 +0000 (20:46 +0000)
bump version.

src/file.h

index c35657ea43c45011d73c381464d1f5471ca2f340..fac3e208bbae049b6cb76ba22f0abb7958cf6978 100644 (file)
@@ -27,7 +27,7 @@
  */
 /*
  * file.h - definitions for file(1) program
- * @(#)$Id: file.h,v 1.78 2006/10/31 19:37:17 christos Exp $
+ * @(#)$Id: file.h,v 1.79 2006/10/31 20:46:23 christos Exp $
  */
 
 #ifndef __file_h__
@@ -74,7 +74,7 @@
 #define MAXstring 32           /* max leng of "string" types */
 
 #define MAGICNO                0xF11E041C
-#define VERSIONNO      2
+#define VERSIONNO      3
 #define FILE_MAGICSIZE (32 * 4)
 
 #define        FILE_LOAD       0
@@ -226,9 +226,7 @@ struct magic {
        int32_t in_offset;      /* offset from indirection */
        /* Word 6,7 */
        uint64_t mask;  /* mask before comparison with value */
-       /* Word 8 */
-       uint32_t dummp4;
-       /* Words 9-16 */
+       /* Words 8-15 */
        union VALUETYPE {
                uint8_t b;
                uint16_t h;
@@ -243,6 +241,8 @@ struct magic {
                uint8_t hl[4];  /* 4 bytes of a fixed-endian "long" */
                uint8_t hq[8];  /* 8 bytes of a fixed-endian "quad" */
        } value;                /* either number or string */
+       /* Word 16 */
+       uint32_t dummp4;
        /* Words 17..31 */
        char desc[MAXDESC];     /* description */
 };