From: Padraig O'Sullivan Date: Sat, 18 Jul 2009 17:09:41 +0000 (-0400) Subject: Build fixes for the memcached_connect.c file. X-Git-Tag: 0.32~7^2^2~8 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f8caecca860c0445bd78fe0fecdfe0433984b7f1;p=m6w6%2Flibmemcached Build fixes for the memcached_connect.c file. --- diff --git a/libmemcached/memcached_connect.c b/libmemcached/memcached_connect.c index 0d61f847..93738f4a 100644 --- a/libmemcached/memcached_connect.c +++ b/libmemcached/memcached_connect.c @@ -152,7 +152,7 @@ static memcached_return unix_socket_connect(memcached_server_st *ptr) servAddr.sun_family= AF_UNIX; strcpy(servAddr.sun_path, ptr->hostname); /* Copy filename */ - addrlen= strlen(servAddr.sun_path) + sizeof(servAddr.sun_family); + addrlen= (socklen_t) (strlen(servAddr.sun_path) + sizeof(servAddr.sun_family)); test_connect: if (connect(ptr->fd,