Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28438
b: refs/heads/master
c: b190f11
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott committed Jun 9, 2006
1 parent 7995b62 commit 4d8a66b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 477829ef2e9e831c56c98948cfef6dfcec305c3a
refs/heads/master: b190f1138b0f30fbe837b3f09fb6ffdb2fc4da24
6 changes: 3 additions & 3 deletions trunk/fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,10 +1654,10 @@ xfs_vget(
#define MNTOPT_NOATTR2 "noattr2" /* do not use attr2 attribute format */

STATIC unsigned long
suffix_strtoul(const char *cp, char **endp, unsigned int base)
suffix_strtoul(char *s, char **endp, unsigned int base)
{
int last, shift_left_factor = 0;
char *value = (char *)cp;
char *value = s;

last = strlen(value) - 1;
if (value[last] == 'K' || value[last] == 'k') {
Expand All @@ -1673,7 +1673,7 @@ suffix_strtoul(const char *cp, char **endp, unsigned int base)
value[last] = '\0';
}

return simple_strtoul(cp, endp, base) << shift_left_factor;
return simple_strtoul((const char *)s, endp, base) << shift_left_factor;
}

STATIC int
Expand Down

0 comments on commit 4d8a66b

Please sign in to comment.