diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-03-18 10:47:17 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-31 11:27:08 -0400 |
commit | 389251eda902d16f3066bac6e8e5c0f596e3428f (patch) | |
tree | 3f95a520f95918dad56b2229b2b0f287d8c6c633 /src/common/compat.h | |
parent | 102bb1c04f5cb4fb3eae7f41f80660e47c64ceb6 (diff) | |
download | tor-389251eda902d16f3066bac6e8e5c0f596e3428f.tar.gz tor-389251eda902d16f3066bac6e8e5c0f596e3428f.zip |
Add return value and assert for null parameter to tor_munmap_file()
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 32effa5c74..c46446414f 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -292,7 +292,7 @@ typedef struct tor_mmap_t { } tor_mmap_t; tor_mmap_t *tor_mmap_file(const char *filename) ATTR_NONNULL((1)); -void tor_munmap_file(tor_mmap_t *handle) ATTR_NONNULL((1)); +int tor_munmap_file(tor_mmap_t *handle) ATTR_NONNULL((1)); int tor_snprintf(char *str, size_t size, const char *format, ...) CHECK_PRINTF(3,4) ATTR_NONNULL((1,3)); |