1.1 --- a/ucx/ucx.h Sat Jul 15 19:20:06 2017 +0200 1.2 +++ b/ucx/ucx.h Sat Jul 15 20:46:18 2017 +0200 1.3 @@ -87,7 +87,7 @@ 1.4 * and 0 if both arguments are equal. If the third argument is 1.5 * <code>NULL</code>, it shall be ignored. 1.6 */ 1.7 -typedef int(*cmp_func)(void*,void*,void*); 1.8 +typedef int(*cmp_func)(const void*,const void*,void*); 1.9 1.10 /** 1.11 * Function pointer to a distance function. 1.12 @@ -96,7 +96,7 @@ 1.13 * the distance shall be computed and optional additional data. 1.14 * The function shall then return the signed distance as integer value. 1.15 */ 1.16 -typedef intmax_t(*distance_func)(void*,void*,void*); 1.17 +typedef intmax_t(*distance_func)(const void*,const void*,void*); 1.18 1.19 /** 1.20 * Function pointer to a copy function. 1.21 @@ -109,7 +109,7 @@ 1.22 * passed to <code>free()</code> depends on the implementation of the 1.23 * respective <code>copy_func</code>. 1.24 */ 1.25 -typedef void*(*copy_func)(void*,void*); 1.26 +typedef void*(*copy_func)(const void*,void*); 1.27 1.28 /** 1.29 * Function pointer to a write function.