Skip to content
  • Richard Guy Briggs's avatar
    audit: change decimal constant to macro for invalid uid · 42f74461
    Richard Guy Briggs authored
    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 780a7654
    
     ("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: default avatarRichard Guy Briggs <rgb@redhat.com>
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    42f74461