[or-cvs] Always use get_data_directory() instead of options.DataDire...

Nick Mathewson nickm at seul.org
Wed Jun 30 16:37:10 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv23485/src/common

Modified Files:
	util.c util.h 
Log Message:
Always use get_data_directory() instead of options.DataDirectory; fix a memory leak in router.c

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- util.c	13 Jun 2004 11:28:32 -0000	1.107
+++ util.c	30 Jun 2004 16:37:08 -0000	1.108
@@ -1508,7 +1508,7 @@
  * until finish_daemon is called.  (Note: it's safe to call this more
  * than once: calls after the first are ignored.)
  */
-void start_daemon(char *desired_cwd)
+void start_daemon(const char *desired_cwd)
 {
   pid_t pid;
 

Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- util.h	5 Jun 2004 01:56:54 -0000	1.71
+++ util.h	30 Jun 2004 16:37:08 -0000	1.72
@@ -235,7 +235,7 @@
 
 const char *get_uname(void);
 
-void start_daemon(char *desired_cwd);
+void start_daemon(const char *desired_cwd);
 void finish_daemon(void);
 
 void write_pidfile(char *filename);



More information about the tor-commits mailing list