All of lore.kernel.org
 help / color / mirror / Atom feed
From: walter harms <wharms@bfs.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] Fix build warning in kernel/auditsc.c
Date: Sun, 31 Aug 2008 18:15:38 +0000	[thread overview]
Message-ID: <48BADFCA.3090206@bfs.de> (raw)
In-Reply-To: <48b93353.02e2660a.0e28.3e54@mx.google.com>



Hannes Eder schrieb:
> Fix the following build warning, by eliminating the variable.
> 
> kernel/auditsc.c: In function 'audit_match_perm':
> kernel/auditsc.c:249: warning: ISO C90 forbids mixed declarations and code
> 
> Signed-off-by: Hannes Eder <hannes@hanneseder.net>
> ---
> walter harms <wharms@bfs.de> wrote:
>> maybe you can do a s/n/ctx->major/g ?
>> removing the need for the whole variable ?!
> 
> Here we go.  Why is this better than splitting the variable declaration and
> initialization, as in the previous patch?
> 

Hi hannes,
removing the variable removes the problem for ever. The Variable itself is used as
"shortcut" to ctx->major whar is useful in larger codes to get a better overview (sometimes).
In this case the code is short, so there is no advantage in keeping.

re,
  wh




      parent reply	other threads:[~2008-08-31 18:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29 20:33 [PATCH] Fix build warning in kernel/auditsc.c Hannes Eder
2008-08-29 20:33 ` Hannes Eder
2008-08-30 12:04 ` walter harms
2008-08-30 12:04   ` walter harms
2008-08-31  9:21   ` Hannes Eder
2008-08-31  9:21     ` Hannes Eder
2008-08-31 18:15 ` walter harms [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48BADFCA.3090206@bfs.de \
    --to=wharms@bfs.de \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.