]> git.sur5r.net Git - openldap/commitdiff
ITS#2729 fix typos
authorHoward Chu <hyc@openldap.org>
Fri, 19 Sep 2003 00:49:33 +0000 (00:49 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 19 Sep 2003 00:49:33 +0000 (00:49 +0000)
libraries/libldap/cyrus.c
servers/slapd/sasl.c

index baf0d1b1d98987af7eecc413c1ad4068046db0e7..a4c48fa2799d7386c3662525116864411cb1ad9c 100644 (file)
@@ -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
index 527e95cda90308bfdbe1eb1a1ad30aa886553931..b17576428959609dbdb3f9ffdb9a3450a90b287a 100644 (file)
@@ -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,