More ITS#6215: Fix va_arg integer types for ber_scanf "bei" & ber_printf "BX"

This commit is contained in:
Hallvard Furuseth 2009-07-29 23:03:10 +00:00
parent 8b3bb91e93
commit 19b8065922
2 changed files with 4 additions and 4 deletions

View File

@ -745,7 +745,7 @@ ber_scanf ( BerElement *ber,
break; break;
case 'e': /* enumerated */ case 'e': /* enumerated */
case 'i': /* int */ case 'i': /* integer */
i = va_arg( ap, ber_int_t * ); i = va_arg( ap, ber_int_t * );
rc = ber_get_int( ber, i ); rc = ber_get_int( ber, i );
break; break;
@ -899,8 +899,8 @@ ber_scanf ( BerElement *ber,
case 'b': /* boolean */ case 'b': /* boolean */
case 'e': /* enumerated */ case 'e': /* enumerated */
case 'i': /* int */ case 'i': /* integer */
(void) va_arg( ap, int * ); (void) va_arg( ap, ber_int_t * );
break; break;
case 'l': /* length of next item */ case 'l': /* length of next item */

View File

@ -578,7 +578,7 @@ ber_printf( BerElement *ber, LDAP_CONST char *fmt, ... )
case 'B': /* bit string */ case 'B': /* bit string */
case 'X': /* bit string (deprecated) */ case 'X': /* bit string (deprecated) */
s = va_arg( ap, char * ); s = va_arg( ap, char * );
len = va_arg( ap, int ); /* in bits */ len = va_arg( ap, ber_len_t ); /* in bits */
rc = ber_put_bitstring( ber, s, len, ber->ber_tag ); rc = ber_put_bitstring( ber, s, len, ber->ber_tag );
break; break;