From: Hallvard Furuseth Date: Mon, 14 Nov 2005 14:43:25 +0000 (+0000) Subject: Fix pointer cast in assignment X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82c73ef51a4f47f73f3983e5e3ba18f13b2b9ac2;p=openldap Fix pointer cast in assignment --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 7669a89fcc..da85ee01ab 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -1125,7 +1125,7 @@ slap_cf_aux_table_unparse( void *src, struct berval *bv, slap_cf_aux_table *tab0 break; case 'u': - uptr = (int *)((char *)src + tab->off); + uptr = (unsigned *)((char *)src + tab->off); *ptr++ = ' '; ptr = lutil_strcopy( ptr, tab->key.bv_val ); ptr += snprintf( ptr, sizeof( buf ) - ( ptr - buf ), "%u", *uptr );