diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-05 13:15:18 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-05 13:15:18 -0400 |
commit | cca195c5c09b81065018dee39f4013b95bf47502 (patch) | |
tree | ac59252852a0b488824645433b8c2017c882e4b3 /fs/gfs2/eattr.h | |
parent | 16910427e1eb2a8069708ee24406d2d465381ebd (diff) | |
download | linux-stable-cca195c5c09b81065018dee39f4013b95bf47502.tar.gz linux-stable-cca195c5c09b81065018dee39f4013b95bf47502.tar.bz2 linux-stable-cca195c5c09b81065018dee39f4013b95bf47502.zip |
[GFS2] Extended attribute code style changes
As per Jan Engelhardt's request and also a few of my own. It has
been possible to add a few most const to the code as a result of
the change in gfs2_ea_name2type.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/eattr.h')
-rw-r--r-- | fs/gfs2/eattr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/eattr.h b/fs/gfs2/eattr.h index cb7c2d846765..ffa65947d686 100644 --- a/fs/gfs2/eattr.h +++ b/fs/gfs2/eattr.h @@ -46,7 +46,7 @@ ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + \ #define GFS2_ERF_MODE 0x80000000 struct gfs2_ea_request { - char *er_name; + const char *er_name; char *er_data; unsigned int er_name_len; unsigned int er_data_len; @@ -87,13 +87,13 @@ static inline unsigned int gfs2_ea_strlen(struct gfs2_ea_header *ea) { switch (ea->ea_type) { case GFS2_EATYPE_USR: - return (5 + (ea->ea_name_len + 1)); + return 5 + ea->ea_name_len + 1; case GFS2_EATYPE_SYS: - return (7 + (ea->ea_name_len + 1)); + return 7 + ea->ea_name_len + 1; case GFS2_EATYPE_SECURITY: - return (9 + (ea->ea_name_len + 1)); + return 9 + ea->ea_name_len + 1; default: - return (0); + return 0; } } |