[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Bugfix: when no units are given, default to seconds or bytes.
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Bugfix: when no units are given, default to seconds or bytes.
- From: nickm@seul.org (Nick Mathewson)
- Date: Tue, 23 Nov 2004 05:52:29 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 23 Nov 2004 05:52:47 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv11603/src/or
Modified Files:
config.c
Log Message:
Bugfix: when no units are given, default to seconds or bytes.
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- config.c 23 Nov 2004 07:37:17 -0000 1.266
+++ config.c 23 Nov 2004 10:52:27 -0000 1.267
@@ -2237,6 +2237,7 @@
};
static struct unit_table_t memory_units[] = {
+ { "", 1 },
{ "b", 1<< 0 },
{ "byte", 1<< 0 },
{ "bytes", 1<< 0 },
@@ -2257,6 +2258,7 @@
};
static struct unit_table_t time_units[] = {
+ { "", 1 },
{ "second", 1 },
{ "seconds", 1 },
{ "minute", 60 },