From c6d4074117c804c3a498100e9b32d5b368a2978e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 12 Nov 1996 14:03:00 -0500 Subject: [PATCH] (field_decl_cmp): Use `const void *' arguments. From-SVN: r13130 --- gcc/c-decl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 611b3ef2a53..13d6887d14d 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) -- 2.30.2