aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-25 10:23:55 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-25 10:23:55 +0000
commit1ef2fb4f10b28baba861357efe2593e2a735ffdf (patch)
tree40a33eafd55884661780c756e4bc4674ca8cd4c8 /src/statistics
parent1880e2676f635910f5dbf4b20763f13b5cabd15c (diff)
downloadgnunet-1ef2fb4f10b28baba861357efe2593e2a735ffdf.tar.gz
gnunet-1ef2fb4f10b28baba861357efe2593e2a735ffdf.zip
-check return value
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/gnunet-service-statistics.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index ec3492710..1d636bd25 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -245,7 +245,8 @@ save ()
245 if (GNUNET_OK != GNUNET_BIO_write (wh, pos->msg, size)) 245 if (GNUNET_OK != GNUNET_BIO_write (wh, pos->msg, size))
246 { 246 {
247 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn); 247 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn);
248 GNUNET_BIO_write_close (wh); 248 if (GNUNET_OK != GNUNET_BIO_write_close (wh))
249 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
249 wh = NULL; 250 wh = NULL;
250 } 251 }
251 else 252 else
@@ -255,7 +256,8 @@ save ()
255 } 256 }
256 if (NULL != wh) 257 if (NULL != wh)
257 { 258 {
258 GNUNET_BIO_write_close (wh); 259 if (GNUNET_OK != GNUNET_BIO_write_close (wh))
260 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
259 if (total == 0) 261 if (total == 0)
260 GNUNET_break (0 == UNLINK (fn)); 262 GNUNET_break (0 == UNLINK (fn));
261 else 263 else