提交 5af18f65 编写于 作者: R Richard Levitte

Use 0 instead of NULL, at least for function casts, since there are

variants of stdio.h that define NULL in such a way that it's "unsafe"
to use for function pointer casting.
上级 a9b34991
......@@ -294,12 +294,12 @@ static void doall_util_fn(LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
void lh_doall(LHASH *lh, LHASH_DOALL_FN_TYPE func)
{
doall_util_fn(lh, 0, func, (LHASH_DOALL_ARG_FN_TYPE)NULL, NULL);
doall_util_fn(lh, 0, func, (LHASH_DOALL_ARG_FN_TYPE)0, NULL);
}
void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, const void *arg)
{
doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)NULL, func, arg);
doall_util_fn(lh, 1, (LHASH_DOALL_FN_TYPE)0, func, arg);
}
static void expand(LHASH *lh)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册