]> wimlib.net Git - wimlib/commitdiff
Remove sle{16,32,64} types
authorEric Biggers <ebiggers3@gmail.com>
Fri, 4 Mar 2016 07:21:22 +0000 (01:21 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 6 Mar 2016 23:22:09 +0000 (17:22 -0600)
include/wimlib/types.h
src/dentry.c

index e838e7fc2a01aebde625c35aa84c95c86b44160c..87f4604267cc94865d805847b7139f7747fc7c1c 100644 (file)
@@ -26,17 +26,10 @@ typedef uint16_t _bitwise_attr le16;
 typedef uint32_t _bitwise_attr le32;
 typedef uint64_t _bitwise_attr le64;
 
-/* Signed little endian types of exact size (declare as unsigned to avoid sign
- * extension on big-endian architectures) */
-typedef uint16_t _bitwise_attr sle16;
-typedef uint32_t _bitwise_attr sle32;
-typedef uint64_t _bitwise_attr sle64;
-
 /* Unsigned big endian types of exact size */
 typedef uint16_t _bitwise_attr be16;
 typedef uint32_t _bitwise_attr be32;
 typedef uint64_t _bitwise_attr be64;
-
 #endif
 
 /* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */
index caa3a51b4b86fb0d98e84f103781cc0274499294..4501525dcd0d70a2b121d00a6e64d60ba31fdd99 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 /*
- * Copyright (C) 2012, 2013, 2014, 2015 Eric Biggers
+ * Copyright (C) 2012-2016 Eric Biggers
  *
  * This file is free software; you can redistribute it and/or modify it under
  * the terms of the GNU Lesser General Public License as published by the Free
@@ -92,10 +92,10 @@ struct wim_dentry_on_disk {
        le32 attributes;
 
        /* A value that specifies the security descriptor for this file or
-        * directory.  If -1, the file or directory has no security descriptor.
-        * Otherwise, it is a 0-based index into the WIM image's table of
-        * security descriptors (see: `struct wim_security_data') */
-       sle32 security_id;
+        * directory.  If 0xFFFFFFFF, the file or directory has no security
+        * descriptor.  Otherwise, it is a 0-based index into the WIM image's
+        * table of security descriptors (see: `struct wim_security_data') */
+       le32 security_id;
 
        /* Offset, in bytes, from the start of the uncompressed metadata
         * resource of this directory's child directory entries, or 0 if this