X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fos-ip.c;h=2eb1c02eff228ad67b32453ea7679677b77770d7;hb=403f4479bc9f9a864122d4aeecf7284408918302;hp=cf56ae8a6434e74c7f3df6c1c79faf42e6b5cf32;hpb=3820b358706bd41bc8889087b1af6a67204f3b73;p=openldap diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index cf56ae8a64..2eb1c02eff 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -73,7 +74,7 @@ ldap_int_timeval_dup( struct timeval **dest, const struct timeval *src ) return 1; } - SAFEMEMCPY( (char *) new, (char *) src, sizeof(struct timeval)); + SAFEMEMCPY( (char *) new, (const char *) src, sizeof(struct timeval)); *dest = new; return 0; @@ -187,8 +188,8 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_in *sin, int async) tv.tv_sec = opt_tv->tv_sec; } - osip_debug(ld, "ldap_connect_timeout: fd: %d tm: %d async: %d\n", - s, opt_tv ? tv.tv_sec : -1, async); + osip_debug(ld, "ldap_connect_timeout: fd: %d tm: %ld async: %d\n", + s, opt_tv ? tv.tv_sec : -1L, async); if ( ldap_pvt_ndelay_on(ld, s) == -1 ) return ( -1 );