提交 ec554fa7 编写于 作者: T Toralf Förster 提交者: Casey Schaufler

Warning in scanf string typing

This fixes a warning about the mismatch of types between
the declared unsigned and integer.
Signed-off-by: NToralf Förster <toralf.foerster@gmx.de>
上级 36ea735b
......@@ -1193,7 +1193,7 @@ static ssize_t smk_write_netlbladdr(struct file *file, const char __user *buf,
data[count] = '\0';
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%d %s",
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd/%u %s",
&host[0], &host[1], &host[2], &host[3], &m, smack);
if (rc != 6) {
rc = sscanf(data, "%hhd.%hhd.%hhd.%hhd %s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册