diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-01-31 10:24:04 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-01-31 10:24:04 +0800 |
commit | 5cc73c88533fc91678213ac27ff3512ceb4b3178 (patch) | |
tree | 1b847d5f4f7b560866a2a9ee11e86bfa0618885b /innbbsd/bbslib.c | |
parent | 9d5f00a692abfe6ba859ebf75c3a0138a7adde35 (diff) | |
download | pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar.gz pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar.bz2 pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar.lz pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar.xz pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.tar.zst pttbbs-5cc73c88533fc91678213ac27ff3512ceb4b3178.zip |
Fix compile warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4434 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/bbslib.c')
-rw-r--r-- | innbbsd/bbslib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/innbbsd/bbslib.c b/innbbsd/bbslib.c index 3ec5cf6d..1bc0db3c 100644 --- a/innbbsd/bbslib.c +++ b/innbbsd/bbslib.c @@ -258,42 +258,42 @@ initial_bbs(char *outgoing) } static int -nf_byboardcmp(newsfeeds_t **a, newsfeeds_t **b) +nf_byboardcmp(const void *a, const void *b) { /* * if (!a || !*a || !(*a)->board) return -1; if (!b || !*b || * !(*b)->board) return 1; */ - return strcasecmp((*a)->board, (*b)->board); + return strcasecmp((*((const newsfeeds_t **)a))->board, (*((const newsfeeds_t **)b))->board); } static int -nfcmp(newsfeeds_t *a, newsfeeds_t *b) +nfcmp(const void *a, const void *b) { /* * if (!a || !a->newsgroups) return -1; if (!b || !b->newsgroups) return * 1; */ - return strcasecmp(a->newsgroups, b->newsgroups); + return strcasecmp(((const newsfeeds_t *)a)->newsgroups, ((const newsfeeds_t *)b)->newsgroups); } static int -nlcmp(nodelist_t *a, nodelist_t *b) +nlcmp(const void *a, const void *b) { /* * if (!a || !a->host) return -1; if (!b || !b->host) return 1; */ - return strcasecmp(a->host, b->host); + return strcasecmp(((const nodelist_t *)a)->host, ((const nodelist_t *)b)->host); } static int -nl_bynodecmp(nodelist_t **a, nodelist_t **b) +nl_bynodecmp(const void *a, const void *b) { /* * if (!a || !*a || !(*a)->node) return -1; if (!b || !*b || !(*b)->node) * return 1; */ - return strcasecmp((*a)->node, (*b)->node); + return strcasecmp((*((const nodelist_t **)a))->node, (*((const nodelist_t **)b))->node); } /* read in newsfeeds.bbs and nodelist.bbs */ |