Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] sim: rename bool argument to avoid stdbool clash
Date: Sun, 14 Mar 2010 20:32:00 -0000	[thread overview]
Message-ID: <1268598861-23442-1-git-send-email-vapier@gentoo.org> (raw)

Including stdbool.h before hw-properties.h results in a build error due
to the hw_add_boolean_property function having an argument named "bool"
in its prototype.  The source file has already be renamed to not use
this ("boolean" instead), so match the header to the source.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
2010-03-14  Mike Frysinger  <vapier@gentoo.org>

	* hw-properties.h (hw_add_boolean_property): Rename "bool" to
	"boolean".

 sim/common/hw-properties.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sim/common/hw-properties.h b/sim/common/hw-properties.h
index 61dbf77..7891cac 100644
--- a/sim/common/hw-properties.h
+++ b/sim/common/hw-properties.h
@@ -120,7 +120,7 @@ const struct hw_property *hw_find_array_property
 void hw_add_boolean_property
 (struct hw *me,
  const char *property,
- int bool);
+ int boolean);
 
 int hw_find_boolean_property
 (struct hw *me,
-- 
1.7.0


             reply	other threads:[~2010-03-14 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-14 20:32 Mike Frysinger [this message]
2010-03-15  0:32 ` Joel Brobecker
2010-03-15  7:09   ` Mike Frysinger

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=1268598861-23442-1-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@sourceware.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