Browse Source

* src/parser/wlist.c: Updates to remove compiler warnings.

pre-master-46
arno 26 years ago
parent
commit
6269d030f0
  1. 19
      src/parser/wlist.c

19
src/parser/wlist.c

@ -13,9 +13,6 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "wlist.h" #include "wlist.h"
static int wlcomp(char **s, char **t);
/* Determine the length of a word list. */ /* Determine the length of a word list. */
int int
@ -215,6 +212,17 @@ wl_nthelem(register int i, wordlist *wl)
return (ww); return (ww);
} }
static int
wlcomp(const void *a, const void *b)
{
char **s = (char **) a;
char **t = (char **) b;
return (strcmp(*s, *t));
}
void void
wl_sort(wordlist *wl) wl_sort(wordlist *wl)
{ {
@ -236,11 +244,6 @@ wl_sort(wordlist *wl)
return; return;
} }
static int
wlcomp(char **s, char **t)
{
return (strcmp(*s, *t));
}
/* Return a range of wordlist elements... */ /* Return a range of wordlist elements... */

Loading…
Cancel
Save