INN commit: trunk/lib (dbz.c)

INN Commit Russ_Allbery at isc.org
Wed Apr 16 16:52:49 UTC 2008


    Date: Wednesday, April 16, 2008 @ 09:52:48
  Author: iulius
Revision: 7775

This variable is used only if the system has mmap.

Modified:
  trunk/lib/dbz.c

-------+
 dbz.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: dbz.c
===================================================================
--- dbz.c	2008-04-15 18:17:19 UTC (rev 7774)
+++ dbz.c	2008-04-16 16:52:48 UTC (rev 7775)
@@ -1248,8 +1248,10 @@
     char *it;
     ssize_t nread;
     size_t i;
+    size_t length = conf.tsize * tab->reclen;
+#ifdef HAVE_MMAP
     struct stat st;
-    size_t length = conf.tsize * tab->reclen;
+#endif
 
     if (tab->incore == INCORE_MMAP) {
 #if defined(HAVE_MMAP)



More information about the inn-committers mailing list