From: Kevin Buettner <kevinb@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] mi/mi-out.c: Make function declarators match earlier declarations
Date: Sun, 08 Jul 2001 22:58:00 -0000 [thread overview]
Message-ID: <1010709055802.ZM9892@ocotillo.lan> (raw)
I've just committed the following patch as an obvious fix. I'm not
sure why these weren't caught sooner, but the native AIX 5 compiler
was (rightfully) complaining about the mismatch between the definition
and declarations of certain functions...
* mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
(mi_field_string) Make function declarators match earlier
declarations.
Index: mi/mi-out.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-out.c,v
retrieving revision 1.20
diff -u -p -r1.20 mi-out.c
--- mi-out.c 2001/07/06 03:53:11 1.20
+++ mi-out.c 2001/07/09 05:47:06
@@ -162,7 +162,7 @@ mi_table_end (struct ui_out *uiout)
/* Specify table header */
void
-mi_table_header (struct ui_out *uiout, int width, int alignment,
+mi_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
const char *col_name,
const char *colhdr)
{
@@ -212,8 +212,8 @@ mi_end (struct ui_out *uiout,
/* output an int field */
void
-mi_field_int (struct ui_out *uiout, int fldno, int width, int alignment,
- const char *fldname, int value)
+mi_field_int (struct ui_out *uiout, int fldno, int width,
+ enum ui_align alignment, const char *fldname, int value)
{
char buffer[20]; /* FIXME: how many chars long a %d can become? */
struct ui_out_data *data = ui_out_data (uiout);
@@ -227,8 +227,8 @@ mi_field_int (struct ui_out *uiout, int
/* used to ommit a field */
void
-mi_field_skip (struct ui_out *uiout, int fldno, int width, int alignment,
- const char *fldname)
+mi_field_skip (struct ui_out *uiout, int fldno, int width,
+ enum ui_align alignment, const char *fldname)
{
struct ui_out_data *data = ui_out_data (uiout);
if (data->suppress_output)
@@ -243,7 +243,7 @@ void
mi_field_string (struct ui_out *uiout,
int fldno,
int width,
- int align,
+ enum ui_align align,
const char *fldname,
const char *string)
{
next reply other threads:[~2001-07-08 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-08 22:58 Kevin Buettner [this message]
2001-07-09 1:10 ` Eli Zaretskii
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=1010709055802.ZM9892@ocotillo.lan \
--to=kevinb@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/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