mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch] pedantic correctness cleanup for conf.c in scripts/kconfig/ .
Date: Wed, 5 Jan 2005 13:26:55 +0100	[thread overview]
Message-ID: <200501051326.56959.zippel@linux-m68k.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0501040031460.3529@dragon.hygekrogen.localhost>

Hi,

On Tuesday 04 January 2005 00:35, Jesper Juhl wrote:

> @@ -305,8 +305,8 @@ static int conf_choice(struct menu *menu
>    printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
>    def_sym = sym_get_choice_value(sym);
>    cnt = def = 0;
> -  line[0] = '0';
> -  line[1] = 0;
> +  line[0] = '\0';
> +  line[1] = '\0';
>    for (child = menu->list; child; child = child->next) {
>     if (!menu_is_visible(child))
>      continue;

This would make a difference and even the other change is not an improvement, 
0 is special string marker and not a character.

bye, Roman


  reply	other threads:[~2005-01-05 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 23:35 Jesper Juhl
2005-01-05 12:26 ` Roman Zippel [this message]
2005-01-05 21:58   ` Jesper Juhl

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=200501051326.56959.zippel@linux-m68k.org \
    --to=zippel@linux-m68k.org \
    --cc=juhl-lkml@dif.dk \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®