aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 03:13:15 -0400
committerNathan Scott <nathans@sgi.com>2006-06-09 03:13:15 -0400
commitb190f1138b0f30fbe837b3f09fb6ffdb2fc4da24 (patch)
tree319fb258e80786451928f7f98aa85c31b06ba599 /fs/xfs/xfs_vfsops.c
parent477829ef2e9e831c56c98948cfef6dfcec305c3a (diff)
[XFS] Fix broken const use inside local suffix_strtoul routine.
SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26201a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index 7550583bd09..918531b6478 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -1654,10 +1654,10 @@ xfs_vget(
1654#define MNTOPT_NOATTR2 "noattr2" /* do not use attr2 attribute format */ 1654#define MNTOPT_NOATTR2 "noattr2" /* do not use attr2 attribute format */
1655 1655
1656STATIC unsigned long 1656STATIC unsigned long
1657suffix_strtoul(const char *cp, char **endp, unsigned int base) 1657suffix_strtoul(char *s, char **endp, unsigned int base)
1658{ 1658{
1659 int last, shift_left_factor = 0; 1659 int last, shift_left_factor = 0;
1660 char *value = (char *)cp; 1660 char *value = s;
1661 1661
1662 last = strlen(value) - 1; 1662 last = strlen(value) - 1;
1663 if (value[last] == 'K' || value[last] == 'k') { 1663 if (value[last] == 'K' || value[last] == 'k') {
@@ -1673,7 +1673,7 @@ suffix_strtoul(const char *cp, char **endp, unsigned int base)
1673 value[last] = '\0'; 1673 value[last] = '\0';
1674 } 1674 }
1675 1675
1676 return simple_strtoul(cp, endp, base) << shift_left_factor; 1676 return simple_strtoul((const char *)s, endp, base) << shift_left_factor;
1677} 1677}
1678 1678
1679STATIC int 1679STATIC int