All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/auditfilter.c: fix compiler warning about decimal constant
@ 2013-05-25  9:12 Toralf Förster
  2013-05-25 14:31 ` richard -rw- weinberger
  0 siblings, 1 reply; 2+ messages in thread
From: Toralf Förster @ 2013-05-25  9:12 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel, Toralf Förster

fixes

  CC      kernel/auditfilter.o
  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]

Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
---
 kernel/auditfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 6bd4a90..0ee9eff 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -423,7 +423,7 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
 		f->lsm_rule = NULL;
 
 		/* Support legacy tests for a valid loginuid */
-		if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295)) {
+		if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295U)) {
 			f->type = AUDIT_LOGINUID_SET;
 			f->val = 0;
 		}
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernel/auditfilter.c: fix compiler warning about decimal constant
  2013-05-25  9:12 [PATCH] kernel/auditfilter.c: fix compiler warning about decimal constant Toralf Förster
@ 2013-05-25 14:31 ` richard -rw- weinberger
  0 siblings, 0 replies; 2+ messages in thread
From: richard -rw- weinberger @ 2013-05-25 14:31 UTC (permalink / raw)
  To: Toralf Förster; +Cc: Al Viro, LKML

On Sat, May 25, 2013 at 11:12 AM, Toralf Förster <toralf.foerster@gmx.de> wrote:
> fixes
>
>   CC      kernel/auditfilter.o
>   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]
>
> Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
> ---
>  kernel/auditfilter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
> index 6bd4a90..0ee9eff 100644
> --- a/kernel/auditfilter.c
> +++ b/kernel/auditfilter.c
> @@ -423,7 +423,7 @@ static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
>                 f->lsm_rule = NULL;
>
>                 /* Support legacy tests for a valid loginuid */
> -               if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295)) {
> +               if ((f->type == AUDIT_LOGINUID) && (f->val == 4294967295U)) {

Why not UINT_MAX?

>                         f->type = AUDIT_LOGINUID_SET;
>                         f->val = 0;
>                 }
> --
> 1.8.1.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



--
Thanks,
//richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-25 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-25  9:12 [PATCH] kernel/auditfilter.c: fix compiler warning about decimal constant Toralf Förster
2013-05-25 14:31 ` richard -rw- weinberger

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.