]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
audit: change decimal constant to macro for invalid uid
authorRichard Guy Briggs <rgb@redhat.com>
Mon, 20 May 2013 19:08:18 +0000 (15:08 -0400)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:54:58 +0000 (17:54 +0100)
commita49482467c6a9a2dbf13a3a002379bc07d983b23
treec0f5d6037fd169c9958f2308e8f76c283b1ae3d9
parentf057db59a1566548d192ab6ce7c311cffb285a30
audit: change decimal constant to macro for invalid uid

commit 42f74461a5b60cf6b42887e6d2ff5b7be4abf1ca upstream.

SFR reported this 2013-05-15:

> After merging the final tree, today's linux-next build (i386 defconfig)
> produced this warning:
>
> kernel/auditfilter.c: In function 'audit_data_to_entry':
> kernel/auditfilter.c:426:3: warning: this decimal constant is unsigned only
> in ISO C90 [enabled by default]
>
> Introduced by commit 780a7654cee8 ("audit: Make testing for a valid
> loginuid explicit") from Linus' tree.

Replace this decimal constant in the code with a macro to make it more readable
(add to the unsigned cast to quiet the warning).

Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/uapi/linux/audit.h
kernel/auditfilter.c