]> git.sur5r.net Git - openldap/commitdiff
Fix pointer cast in assignment
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 14:43:25 +0000 (14:43 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 14:43:25 +0000 (14:43 +0000)
servers/slapd/config.c

index 7669a89fccd219aaff3d527d028821800810cef0..da85ee01ab3ef3ef0a4c969b009ffa951e84391f 100644 (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 );