aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2012-06-26 14:29:48 +0200
committerJan Engelhardt <jengelh@inai.de>2012-07-03 01:24:42 +0200
commit77ac30454957e478eb7939b3bc7a181eaa254c58 (patch)
tree9418233e2057ae37d8d25da87c055fa1976c688a
parent673f8a422ccda9b87bbb7a930956e76afeef8948 (diff)
downloadbindfs-77ac30454957e478eb7939b3bc7a181eaa254c58.tar.gz
bindfs: reduce memory holes in struct permchain
Reduce holes in struct permchain by appropriately sizing and reordering members.
-rw-r--r--src/permchain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/permchain.c b/src/permchain.c
index 6e99e7b..fe2dd48 100644
--- a/src/permchain.c
+++ b/src/permchain.c
@@ -31,12 +31,12 @@
struct permchain {
mode_t mask; /* which permissions to apply to */
- char op; /* one of '=', '+', '-', 'o' (octal) or '\0' */
union {
- char operands[16]; /* a subset of rwxXstugo */
+ char operands[10]; /* a subset of rwxXstugo */
unsigned int octal;
};
int flags;
+ char op; /* one of '=', '+', '-', 'o' (octal) or '\0' */
struct permchain *next;
};