X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fsockpair.c;h=b351f0a8a57d28387b32c3baf8229d3155e52e4d;hb=aa33f4b220924d9b054c5acbce3440dadef41a27;hp=c2e62200355b60e492a42924a6ad546871824bfd;hpb=da6d9eb0463255782f3fa70c61fd958d94c048cf;p=openldap diff --git a/libraries/liblutil/sockpair.c b/libraries/liblutil/sockpair.c index c2e6220035..b351f0a8a5 100644 --- a/libraries/liblutil/sockpair.c +++ b/libraries/liblutil/sockpair.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2012 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,7 +35,8 @@ int lutil_pair( ber_socket_t sds[2] ) return pipe( sds ); #else struct sockaddr_in si; - int rc, len = sizeof(si); + int rc; + ber_socklen_t len = sizeof(si); ber_socket_t sd; sd = socket( AF_INET, SOCK_DGRAM, 0 );