diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-05 17:53:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-05 17:53:08 +0000 |
commit | dbac3fb481add618ed92e0f7870053be9c695c09 (patch) | |
tree | d5e8b92028213984ba4dff8e982a0e7fe8784cad /src/common/compat.h | |
parent | 714d1b66aa077e75707715f8bacd4067afd95a7e (diff) | |
download | tor-dbac3fb481add618ed92e0f7870053be9c695c09.tar.gz tor-dbac3fb481add618ed92e0f7870053be9c695c09.zip |
r7028@Kushana: nickm | 2006-08-04 13:10:16 -0700
Make data and size fields visible in tor_mmap_t; hide win magic differently.
svn:r6986
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index eb72e2e663..b842218f75 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -115,7 +115,10 @@ size_t strlcpy(char *dst, const char *src, size_t siz); #endif /** Opaque bookkeeping type used for mmap accounting. */ -typedef struct tor_mmap_t tor_mmap_t; +typedef struct tor_mmap_t { + const char *data; + size_t size; +} tor_mmap_t; tor_mmap_t *tor_mmap_file(const char *filename, const char **data, size_t *size); |