diff options
author | Toralf Förster <toralf.foerster@gmx.de> | 2014-04-26 13:28:13 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2014-06-01 16:29:43 -0400 |
commit | afe604d01ff62dd664440692d1c13d18578ddeaa (patch) | |
tree | 2d2907978d2658c8b422049eb480bdca2dd11c02 /fs/9p | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
fs/9p: adjust sscanf parameters accordingly to the variable types
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 53161ec058a7..7ccf6de516a3 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, | |||
147 | int major = -1, minor = -1; | 147 | int major = -1, minor = -1; |
148 | 148 | ||
149 | strlcpy(ext, stat->extension, sizeof(ext)); | 149 | strlcpy(ext, stat->extension, sizeof(ext)); |
150 | sscanf(ext, "%c %u %u", &type, &major, &minor); | 150 | sscanf(ext, "%c %i %i", &type, &major, &minor); |
151 | switch (type) { | 151 | switch (type) { |
152 | case 'c': | 152 | case 'c': |
153 | res |= S_IFCHR; | 153 | res |= S_IFCHR; |