From: Eric Biggers Date: Fri, 4 Mar 2016 07:21:22 +0000 (-0600) Subject: Remove sle{16,32,64} types X-Git-Tag: v1.9.1~4 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=9538fd9ff3fb4a8e524b281ac6dc174e5d905ff6 Remove sle{16,32,64} types --- diff --git a/include/wimlib/types.h b/include/wimlib/types.h index e838e7fc..87f46042 100644 --- a/include/wimlib/types.h +++ b/include/wimlib/types.h @@ -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 */ diff --git a/src/dentry.c b/src/dentry.c index caa3a51b..4501525d 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -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