aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2009-06-11 15:37:44 +0000
committerNils Durner <durner@gnunet.org>2009-06-11 15:37:44 +0000
commit81aac31f13c1f57a84cc2ae79746688bf7f3ffe8 (patch)
tree2ee40a48ed4f5d945a2c42c5b9e799b121e4680c /src/statistics
parent4dcecfd72005cc8f990dea5fca456da54a6eaa98 (diff)
downloadgnunet-81aac31f13c1f57a84cc2ae79746688bf7f3ffe8.tar.gz
gnunet-81aac31f13c1f57a84cc2ae79746688bf7f3ffe8.zip
MinGW
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/gnunet-service-statistics.c4
-rw-r--r--src/statistics/test_statistics_api.c4
2 files changed, 4 insertions, 4 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}
diff --git a/src/statistics/test_statistics_api.c b/src/statistics/test_statistics_api.c
index 7a39f54b6..b9f81d652 100644
--- a/src/statistics/test_statistics_api.c
+++ b/src/statistics/test_statistics_api.c
@@ -141,7 +141,7 @@ check ()
141 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 141 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
142 ok = 1; 142 ok = 1;
143 } 143 }
144 waitpid (pid, NULL, 0); 144 GNUNET_OS_process_wait(pid);
145 if (ok != 0) 145 if (ok != 0)
146 return ok; 146 return ok;
147 ok = 1; 147 ok = 1;
@@ -160,7 +160,7 @@ check ()
160 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 160 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
161 ok = 1; 161 ok = 1;
162 } 162 }
163 waitpid (pid, NULL, 0); 163 GNUNET_OS_process_wait(pid);
164 return ok; 164 return ok;
165} 165}
166 166