dovecot-2.0-sslstream: array_bsearch(): Cast return value to pro...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:24 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/38941d54ec5d
changeset: 10327:38941d54ec5d
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 13 20:52:06 2009 -0500
description:
array_bsearch(): Cast return value to proper type.
diffstat:
1 file changed, 1 insertion(+)
src/lib/array.h | 1 +
diffs (11 lines):
diff -r d1ace3dbc94a -r 38941d54ec5d src/lib/array.h
--- a/src/lib/array.h Fri Nov 13 18:12:17 2009 -0500
+++ b/src/lib/array.h Fri Nov 13 20:52:06 2009 -0500
@@ -274,6 +274,7 @@ void *array_bsearch_i(struct array *arra
int (*cmp)(const void *, const void *));
#ifdef CONTEXT_TYPE_SAFETY
#define array_bsearch(array, key, cmp) \
+ ARRAY_TYPE_CAST_MODIFIABLE(array) \
({(void)(1 ? 0 : cmp(key, ARRAY_TYPE_CAST_CONST(array)NULL)); \
array_bsearch_i(&(array)->arr, (const void *)key, \
(int (*)(const void *, const void *))cmp); })
More information about the dovecot-cvs
mailing list