diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-11-25 14:00:36 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 20:13:10 +0100 |
commit | 852e22950dc47e774bb602b16f55fed42afac5fb (patch) | |
tree | 204bb2d69a3e408567d3ecc8cbdda70f208b8474 /fs/cifs/cifsacl.h | |
parent | cifs: move num_subauth check inside of CONFIG_CIFS_DEBUG2 check in parse_sid() (diff) | |
download | linux-852e22950dc47e774bb602b16f55fed42afac5fb.tar.xz linux-852e22950dc47e774bb602b16f55fed42afac5fb.zip |
cifs: use the NUM_AUTHS and NUM_SUBAUTHS constants in cifsacl code
...instead of hardcoding in '5' and '6' all over the place.
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsacl.h')
-rw-r--r-- | fs/cifs/cifsacl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h index 5c902c7ce524..80e0d66a403d 100644 --- a/fs/cifs/cifsacl.h +++ b/fs/cifs/cifsacl.h @@ -60,8 +60,8 @@ struct cifs_ntsd { struct cifs_sid { __u8 revision; /* revision level */ __u8 num_subauth; - __u8 authority[6]; - __le32 sub_auth[5]; /* sub_auth[num_subauth] */ + __u8 authority[NUM_AUTHS]; + __le32 sub_auth[NUM_SUBAUTHS]; /* sub_auth[num_subauth] */ } __attribute__((packed)); struct cifs_acl { |