gcc -W cleanup

This commit is contained in:
Hallvard Furuseth 1998-11-23 01:46:32 +00:00
parent 185586f5c2
commit 7273fd47fd
3 changed files with 5 additions and 5 deletions

View 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 );
}

View 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;
}
}

View 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),