summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-02 22:47:46 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-02 22:47:46 +0000
commitc5b90daf868963ce7a46b117338fbaaeba30895e (patch)
tree14d1ebadc16a8b166e0eee4ecc8d46e539a20d07 /src/common
parentd1fdabf1c738873e805d4d7dd1772dc98666e18f (diff)
downloadtor-c5b90daf868963ce7a46b117338fbaaeba30895e.tar.gz
tor-c5b90daf868963ce7a46b117338fbaaeba30895e.zip
cleanups, bump to 0.1.2.4-alpha
svn:r9015
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index ba0acec094..3156adea87 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -142,8 +142,8 @@ tor_mmap_file(const char *filename)
size += (size%page_size) ? page_size-(size%page_size) : 0;
if (!size) {
- /* zero-length file. if we call mmap on it, we'll end up setting
- * data to NULL below, and bad things will happen. So just fail. */
+ /* Zero-length file. If we call mmap on it, it will succeed but
+ * return NULL, and bad things will happen. So just fail. */
log_notice(LD_FS,"File \"%s\" is empty. Ignoring.",filename);
return NULL;
}