diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-25 22:10:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-25 22:10:51 +0000 |
commit | f1b9c5c115139b02cac1cae4f053792e1e5b1ccb (patch) | |
tree | cd9047d73ba498d05f67c7e06ae4bd5ed89511e7 /src/statistics | |
parent | c2d3d24cd9b4f552d7ca8ad6283f9819c1cfefc7 (diff) | |
download | gnunet-f1b9c5c115139b02cac1cae4f053792e1e5b1ccb.tar.gz gnunet-f1b9c5c115139b02cac1cae4f053792e1e5b1ccb.zip |
improving style and docs
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index e4c3fe040..20dd10586 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -22,6 +22,9 @@ | |||
22 | * @file statistics/gnunet-service-statistics.c | 22 | * @file statistics/gnunet-service-statistics.c |
23 | * @brief program that tracks statistics | 23 | * @brief program that tracks statistics |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | ||
26 | * TODO: | ||
27 | * - use BIO for IO operations | ||
25 | */ | 28 | */ |
26 | #include "platform.h" | 29 | #include "platform.h" |
27 | #include "gnunet_disk_lib.h" | 30 | #include "gnunet_disk_lib.h" |
@@ -121,7 +124,7 @@ load (struct GNUNET_SERVER_Handle *server, | |||
121 | GNUNET_free (fn); | 124 | GNUNET_free (fn); |
122 | return; | 125 | return; |
123 | } | 126 | } |
124 | buf = GNUNET_DISK_file_map (fh, &mh, GNUNET_DISK_MAP_READ, sb.st_size); | 127 | buf = GNUNET_DISK_file_map (fh, &mh, GNUNET_DISK_MAP_TYPE_READ, sb.st_size); |
125 | if (NULL == buf) | 128 | if (NULL == buf) |
126 | { | 129 | { |
127 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "mmap", fn); | 130 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "mmap", fn); |