[or-cvs] Bugfix: when no units are given, default to seconds or bytes.
Nick Mathewson
nickm at seul.org
Tue Nov 23 10:52:29 UTC 2004
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 },
More information about the tor-commits
mailing list