[or-cvs] Fix libc compilation

Nick Mathewson nickm at seul.org
Mon Jun 27 23:40:19 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv4214/src/common

Modified Files:
	compat.c 
Log Message:
Fix libc compilation

Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- compat.c	27 Jun 2005 23:35:04 -0000	1.56
+++ compat.c	27 Jun 2005 23:40:17 -0000	1.57
@@ -147,7 +147,7 @@
 {
 #if defined(HAVE_MEMMEM) && (!defined(__GNUC__) || __GNUC__ >= 2)
   tor_assert(nlen);
-  return memmem(haystack, hlen, needle, nlen);
+  return memmem(_haystack, hlen, _needle, nlen);
 #else
   /* This isn't as fast as the GLIBC implementation, but it doesn't need to be. */
   const char *p, *end;



More information about the tor-commits mailing list