[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Add "MEMUNIT" and "INTERVAL" types to configuration. Also t...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Add "MEMUNIT" and "INTERVAL" types to configuration. Also t...
- From: nickm@seul.org (Nick Mathewson)
- Date: Fri, 19 Nov 2004 19:37:02 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 19 Nov 2004 19:37:32 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv12455/src/common
Modified Files:
compat.h
Log Message:
Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup. More docs needed
Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- compat.h 10 Nov 2004 14:23:31 -0000 1.7
+++ compat.h 20 Nov 2004 00:37:00 -0000 1.8
@@ -69,10 +69,12 @@
#define U64_PRINTF_ARG(a) (a)
#define U64_SCANF_ARG(a) (a)
#define U64_FORMAT "%I64u"
+#define U64_LITERAL(n) (n ## ui64)
#else
#define U64_PRINTF_ARG(a) ((long long unsigned int)a)
#define U64_SCANF_ARG(a) ((long long unsigned int*)a)
#define U64_FORMAT "%llu"
+#define U64_LITERAL(n) (n ## llu)
#endif
int tor_snprintf(char *str, size_t size, const char *format, ...)