aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-service-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r--src/statistics/gnunet-service-statistics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index 676db1b02..42ff8d927 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -120,7 +120,7 @@ load (struct GNUNET_SERVER_Handle *server,
120 GNUNET_free (fn); 120 GNUNET_free (fn);
121 return; 121 return;
122 } 122 }
123 buf = mmap (NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0); 123 buf = MMAP (NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
124 if (MAP_FAILED == buf) 124 if (MAP_FAILED == buf)
125 { 125 {
126 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "mmap", fn); 126 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "mmap", fn);
@@ -143,7 +143,7 @@ load (struct GNUNET_SERVER_Handle *server,
143 } 143 }
144 off += ntohs (msg->size); 144 off += ntohs (msg->size);
145 } 145 }
146 GNUNET_break (0 == munmap (buf, sb.st_size)); 146 GNUNET_break (0 == MUNMAP (buf, sb.st_size));
147 GNUNET_break (0 == CLOSE (fd)); 147 GNUNET_break (0 == CLOSE (fd));
148 GNUNET_free (fn); 148 GNUNET_free (fn);
149} 149}