[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Always use get_data_directory() instead of options.DataDire...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Always use get_data_directory() instead of options.DataDire...
- From: nickm@seul.org (Nick Mathewson)
- Date: Wed, 30 Jun 2004 12:37:10 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 30 Jun 2004 12:37:21 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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);