diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-20 10:57:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-20 10:57:49 +0000 |
commit | 30b7917887cfa89b6dd63350df91aff2ce89af2a (patch) | |
tree | 20fd1f9c9d58bbb24971a725d698d55978bbc4fc /src/fs/gnunet-auto-share.c | |
parent | 9d6fd1aba0f830853426f718061c859ea7ebad5f (diff) | |
download | gnunet-30b7917887cfa89b6dd63350df91aff2ce89af2a.tar.gz gnunet-30b7917887cfa89b6dd63350df91aff2ce89af2a.zip |
-check misc return values
Diffstat (limited to 'src/fs/gnunet-auto-share.c')
-rw-r--r-- | src/fs/gnunet-auto-share.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c index 0ea0647e9..ec90ae2d5 100644 --- a/src/fs/gnunet-auto-share.c +++ b/src/fs/gnunet-auto-share.c | |||
@@ -231,7 +231,7 @@ load_state () | |||
231 | error: | 231 | error: |
232 | GNUNET_free_non_null (fn); | 232 | GNUNET_free_non_null (fn); |
233 | if (NULL != rh) | 233 | if (NULL != rh) |
234 | GNUNET_BIO_read_close (rh, &emsg); | 234 | (void) GNUNET_BIO_read_close (rh, &emsg); |
235 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 235 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
236 | _("Failed to load state: %s\n"), | 236 | _("Failed to load state: %s\n"), |
237 | emsg); | 237 | emsg); |
@@ -588,9 +588,10 @@ add_file (void *cls, | |||
588 | sizeof (struct GNUNET_HashCode))) | 588 | sizeof (struct GNUNET_HashCode))) |
589 | return GNUNET_OK; /* skip: we did this one already */ | 589 | return GNUNET_OK; /* skip: we did this one already */ |
590 | /* contents changed, need to re-do the directory... */ | 590 | /* contents changed, need to re-do the directory... */ |
591 | GNUNET_CONTAINER_multihashmap_remove (work_finished, | 591 | GNUNET_assert (GNUNET_YES == |
592 | &key, | 592 | GNUNET_CONTAINER_multihashmap_remove (work_finished, |
593 | wi); | 593 | &key, |
594 | wi)); | ||
594 | } | 595 | } |
595 | else | 596 | else |
596 | { | 597 | { |