193 files changed, 80411 insertions, 44563 deletions
diff --git a/include/ntfs-3g/cache.h b/include/ntfs-3g/cache.h index 67c3325..be63b1a 100755 --- a/include/ntfs-3g/cache.h +++ b/include/ntfs-3g/cache.h @@ -1,7 +1,7 @@ /* * cache.h : deal with indexed LRU caches * - * Copyright (c) 2008-2009 Jean-Pierre Andre + * Copyright (c) 2008-2010 Jean-Pierre Andre * * This program/include file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published @@ -29,7 +29,7 @@ struct CACHED_GENERIC { struct CACHED_GENERIC *previous; void *variable; size_t varsize; - void *fixed[0]; + union ALIGNMENT payload[0]; } ; struct CACHED_INODE { @@ -37,6 +37,7 @@ struct CACHED_INODE { struct CACHED_INODE *previous; const char *pathname; size_t varsize; + union ALIGNMENT payload[0]; /* above fields must match "struct CACHED_GENERIC" */ u64 inum; } ; @@ -46,6 +47,7 @@ struct CACHED_NIDATA { struct CACHED_NIDATA *previous; const char *pathname; /* not used */ size_t varsize; /* not used */ + union ALIGNMENT payload[0]; /* above fields must match "struct CACHED_GENERIC" */ u64 inum; ntfs_inode *ni; @@ -56,6 +58,7 @@ struct CACHED_LOOKUP { struct CACHED_LOOKUP *previous; const char *name; size_t namesize; + union ALIGNMENT payload[0]; /* above fields must match "struct CACHED_GENERIC" */ u64 parent; u64 inum; |