summaryrefslogtreecommitdiffstats
path: root/innbbsd/echobbslib.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-31 10:24:04 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-31 10:24:04 +0800
commit5cc73c88533fc91678213ac27ff3512ceb4b3178 (patch)
tree1b847d5f4f7b560866a2a9ee11e86bfa0618885b /innbbsd/echobbslib.c
parent9d5f00a692abfe6ba859ebf75c3a0138a7adde35 (diff)
downloadpttbbs-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/echobbslib.c')
-rw-r--r--innbbsd/echobbslib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/innbbsd/echobbslib.c b/innbbsd/echobbslib.c
index 44f7739c..7a82f417 100644
--- a/innbbsd/echobbslib.c
+++ b/innbbsd/echobbslib.c
@@ -257,42 +257,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 */