freebsd-ports/net/proxychains/files/patch-proxychains-libproxychains.c
Martin Wilke 5851f7b49a - Update to 3.1
PR:		ports/106548
Submitted by:	"ports@c0decafe.net" <ports@c0decafe.net>
Approved by:	maintainer
2006-12-12 21:39:24 +00:00

22 lines
661 B
C

--- proxychains/libproxychains.c.orig Wed Mar 15 18:16:59 2006
+++ proxychains/libproxychains.c Sun Dec 10 01:16:37 2006
@@ -160,7 +160,7 @@
if(!(file=fopen("./proxychains.conf","r")))
if(!(file=fopen(buff,"r")))
- if(!(file=fopen("/etc/proxychains.conf","r")))
+ if(!(file=fopen(PREFIX "/etc/proxychains.conf","r")))
{
perror("Can't locate proxychains.conf");
exit(1);
@@ -290,8 +290,8 @@
int getnameinfo (const struct sockaddr * sa,
socklen_t salen, char * host,
- socklen_t hostlen, char * serv,
- socklen_t servlen, unsigned int flags)
+ size_t hostlen, char * serv,
+ size_t servlen, int flags)
{
int ret = 0;
if(!init_l)