From 6269d030f01cf586af12717759d07aae60dc4d7d Mon Sep 17 00:00:00 2001 From: arno Date: Sat, 13 May 2000 10:07:05 +0000 Subject: [PATCH] * src/parser/wlist.c: Updates to remove compiler warnings. --- src/parser/wlist.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/parser/wlist.c b/src/parser/wlist.c index 89528ca64..cc28be1f0 100644 --- a/src/parser/wlist.c +++ b/src/parser/wlist.c @@ -13,9 +13,6 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group #include "wlist.h" -static int wlcomp(char **s, char **t); - - /* Determine the length of a word list. */ int @@ -215,6 +212,17 @@ wl_nthelem(register int i, wordlist *wl) return (ww); } + + +static int +wlcomp(const void *a, const void *b) +{ + char **s = (char **) a; + char **t = (char **) b; + return (strcmp(*s, *t)); +} + + void wl_sort(wordlist *wl) { @@ -236,11 +244,6 @@ wl_sort(wordlist *wl) return; } -static int -wlcomp(char **s, char **t) -{ - return (strcmp(*s, *t)); -} /* Return a range of wordlist elements... */