* %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
@ 2014-07-30 19:51 Toralf Förster
2014-07-31 1:48 ` Paul Moore
0 siblings, 1 reply; 2+ messages in thread
From: Toralf Förster @ 2014-07-30 19:51 UTC (permalink / raw)
To: selinux
/me wonders if this issue (found by cppcheck) :
ret = -EINVAL;
if (sscanf(page, "%u", &new_value) != 1)<--- %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
goto out;
is already in one's trivial patch queue ?
--
Toralf
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
2014-07-30 19:51 %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *' Toralf Förster
@ 2014-07-31 1:48 ` Paul Moore
0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2014-07-31 1:48 UTC (permalink / raw)
To: Toralf Förster; +Cc: selinux
On Wednesday, July 30, 2014 09:51:40 PM Toralf Förster wrote:
> /me wonders if this issue (found by cppcheck) :
>
> ret = -EINVAL;
> if (sscanf(page, "%u", &new_value) != 1)<--- %u in format string
> (no. 1) requires 'unsigned int *' but the argument type is 'int *'. goto
> out;
>
> is already in one's trivial patch queue ?
Is this in sel_write_avc_cache_threshold()? If so, no, we don't currently
have a patch queued for this, it would be great if you wanted to submit a
patch to turn new_value into an unsigned int.
--
paul moore
www.paul-moore.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-31 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 19:51 %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *' Toralf Förster
2014-07-31 1:48 ` Paul Moore
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.