[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Use tor_listdir in test.c instead of duplicating ode.



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

Modified Files:
	compat.h 
Log Message:
Use tor_listdir in test.c instead of duplicating ode.

Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- compat.h	12 Aug 2005 17:24:53 -0000	1.34
+++ compat.h	10 Sep 2005 01:42:42 -0000	1.35
@@ -128,6 +128,12 @@
 /* ===== File compatibility */
 int replace_file(const char *from, const char *to);
 
+#ifdef MS_WINDOWS
+#define PATH_SEPARATOR "\\"
+#else
+#define PATH_SEPARATOR "/"
+#endif
+
 /* ===== Net compatibility */
 #ifdef MS_WINDOWS
 /** On windows, you have to call close() on fds returned by open(),