mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
c9eaa447e7
commit
afe604d01f
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses,
|
||||||
int major = -1, minor = -1;
|
int major = -1, minor = -1;
|
||||||
|
|
||||||
strlcpy(ext, stat->extension, sizeof(ext));
|
strlcpy(ext, stat->extension, sizeof(ext));
|
||||||
sscanf(ext, "%c %u %u", &type, &major, &minor);
|
sscanf(ext, "%c %i %i", &type, &major, &minor);
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'c':
|
case 'c':
|
||||||
res |= S_IFCHR;
|
res |= S_IFCHR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue