]> git.sur5r.net Git - openldap/commitdiff
gcc -W cleanup
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 1998 01:46:32 +0000 (01:46 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 1998 01:46:32 +0000 (01:46 +0000)
libraries/liblber/dtest.c
libraries/libldap/result.c
libraries/liblutil/passwd.c

index d2f72154b46b526c9773a11efae4f7e8f1502085..a03bb626afe5036b357959f95a483621444e4338 100644 (file)
@@ -59,7 +59,7 @@ main( int argc, char **argv )
                fprintf( stderr, "ber_scanf returns -1\n" );
                exit( 1 );
        }
-       printf( "got int %d\n", i );
+       printf( "got int %ld\n", i );
 
        return( 0 );
 }
index 9cc47942c9ccd0bb7c38c986503d2e6855634877..a552c3f5435e40c6a1a4c8c9c46a722f1fe84e62 100644 (file)
@@ -149,7 +149,7 @@ wait4msg( LDAP *ld, int msgid, int all, struct timeval *timeout,
                    0, 0, 0 );
        } else {
                Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec)\n",
-                   timeout->tv_sec, timeout->tv_usec, 0 );
+                      (long) timeout->tv_sec, (long) timeout->tv_usec, 0 );
        }
 #endif /* LDAP_DEBUG */
 
@@ -249,7 +249,7 @@ wait4msg( LDAP *ld, int msgid, int all, struct timeval *timeout,
                        }
 
                        Debug( LDAP_DEBUG_TRACE, "wait4msg:  %ld secs to go\n",
-                               tv.tv_sec, 0, 0 );
+                              (long) tv.tv_sec, 0, 0 );
                        start_time = tmp_time;
                }
        }
index 89b45b92c309796d565aa9b2f12e3eed2feb9e14..869b56a34568819fdddd6520d39726b87d0ae321 100644 (file)
@@ -44,7 +44,7 @@ lutil_passwd(
 
                ldap_MD5Init(&MD5context);
                ldap_MD5Update(&MD5context,
-                       cred, strlen(cred));
+                              (const unsigned char *)cred, strlen(cred));
                ldap_MD5Final(MD5digest, &MD5context);
 
                if ( b64_ntop(MD5digest, sizeof(MD5digest),
@@ -63,7 +63,7 @@ lutil_passwd(
 
                ldap_SHA1Init(&SHA1context);
                ldap_SHA1Update(&SHA1context,
-                       (unsigned char *) cred, strlen(cred));
+                               (const unsigned char *) cred, strlen(cred));
                ldap_SHA1Final(SHA1digest, &SHA1context);
 
                if (b64_ntop(SHA1digest, sizeof(SHA1digest),