From: Howard Chu Date: Fri, 19 Sep 2003 00:49:33 +0000 (+0000) Subject: ITS#2729 fix typos X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~706 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1881ae872f51fef89d9c5b261f2d7054e27fab54;p=openldap ITS#2729 fix typos --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index baf0d1b1d9..a4c48fa279 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -67,7 +67,7 @@ int ldap_int_sasl_init( void ) if ( ((rc >> 16) != ((SASL_VERSION_MAJOR << 8)|SASL_VERSION_MINOR)) || (rc & 0xffff) < SASL_VERSION_STEP) { char version[sizeof("xxx.xxx.xxxxx")]; - sprintf( version, "%d.%d.%d", rc >> 24, rc >> 16 * 0xff, + sprintf( version, "%u.%d.%d", (unsigned)rc >> 24, (rc >> 16) & 0xff, rc & 0xffff ); #ifdef NEW_LOGGING diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 527e95cda9..b175764289 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -975,7 +975,7 @@ int slap_sasl_init( void ) if ( ((rc >> 16) != ((SASL_VERSION_MAJOR << 8)|SASL_VERSION_MINOR)) || (rc & 0xffff) < SASL_VERSION_STEP) { char version[sizeof("xxx.xxx.xxxxx")]; - sprintf( version, "%d.%d.%d", rc >> 24, rc >> 16 & 0xff, + sprintf( version, "%u.%d.%d", (unsigned)rc >> 24, (rc >> 16) & 0xff, rc & 0xffff ); #ifdef NEW_LOGGING LDAP_LOG( TRANSPORT, INFO,