diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-12 14:03:00 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-12 14:03:00 -0500 |
commit | c6d4074117c804c3a498100e9b32d5b368a2978e (patch) | |
tree | a6b27a98e39d211ecfda68ad24db4994da9968bd /gcc | |
parent | 511806bc47eef52218ebaddd85434da55779a7ea (diff) | |
download | gcc-c6d4074117c804c3a498100e9b32d5b368a2978e.zip gcc-c6d4074117c804c3a498100e9b32d5b368a2978e.tar.gz gcc-c6d4074117c804c3a498100e9b32d5b368a2978e.tar.bz2 |
(field_decl_cmp): Use `const void *' arguments.
From-SVN: r13130
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 611b3ef..13d6887 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -423,7 +423,7 @@ static tree lookup_tag_reverse PROTO((tree)); static tree grokdeclarator PROTO((tree, tree, enum decl_context, int)); static tree grokparms PROTO((tree, int)); -static int field_decl_cmp PROTO((tree *, tree *)); +static int field_decl_cmp PROTO((const GENERIC_PTR, const GENERIC_PTR)); static void layout_array_type PROTO((tree)); /* C-specific option variables. */ @@ -5475,9 +5475,12 @@ grokfield (filename, line, declarator, declspecs, width) /* Function to help qsort sort FIELD_DECLs by name order. */ static int -field_decl_cmp (x, y) - tree *x, *y; +field_decl_cmp (xp, yp) + const GENERIC_PTR xp; + const GENERIC_PTR yp; { + tree *x = (tree *)xp, *y = (tree *)yp; + if (DECL_NAME (*x) == DECL_NAME (*y)) return 0; if (DECL_NAME (*x) == NULL) |