aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-22 02:20:52 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-22 02:20:52 +0000
commit4ec5e139c8442b321ef9b58684da547ea0388261 (patch)
tree70601b682cc85875f18891293e182770cab2fc95 /src/common/util.h
parentd23cb33a1a7c2fb8e16040826ec2bbda607468c5 (diff)
downloadtor-4ec5e139c8442b321ef9b58684da547ea0388261.tar.gz
tor-4ec5e139c8442b321ef9b58684da547ea0388261.zip
r12850@catbus: nickm | 2007-05-21 22:20:42 -0400
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up. svn:r10248
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 7a0335935b..6b32708c5e 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -167,6 +167,7 @@ uint64_t tor_parse_uint64(const char *s, int base, uint64_t min,
uint64_t max, int *ok, char **next);
const char *hex_str(const char *from, size_t fromlen) ATTR_NONNULL((1));
const char *eat_whitespace(const char *s) ATTR_PURE;
+const char *eat_whitespace_eos(const char *s, const char *eos) ATTR_PURE;
const char *eat_whitespace_no_nl(const char *s) ATTR_PURE;
const char *find_whitespace(const char *s) ATTR_PURE;
int tor_mem_is_zero(const char *mem, size_t len) ATTR_PURE;