Fix pointer cast in assignment

This commit is contained in:
Hallvard Furuseth 2005-11-14 14:43:25 +00:00
parent aa37b27ab3
commit 82c73ef51a

View File

@ -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 );