aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exit/gnunet-helper-exit.c2
-rw-r--r--src/fs/fs_api.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c
index d469c1949..30f5d2569 100644
--- a/src/exit/gnunet-helper-exit.c
+++ b/src/exit/gnunet-helper-exit.c
@@ -760,7 +760,7 @@ main (int argc, char **argv)
760 run (fd_tun); 760 run (fd_tun);
761 global_ret = 0; 761 global_ret = 0;
762 cleanup: 762 cleanup:
763 close (fd_tun); 763 (void) close (fd_tun);
764 return global_ret; 764 return global_ret;
765} 765}
766 766
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index f31d8116d..e0ceb4c57 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -493,9 +493,9 @@ GNUNET_FS_data_reader_file_ (void *cls, uint64_t offset, size_t max, void *buf,
493 return 0; 493 return 0;
494 } 494 }
495 } 495 }
496 GNUNET_DISK_file_seek (fi->fd, offset, GNUNET_DISK_SEEK_SET); 496 if ( (GNUNET_SYSERR ==
497 ret = GNUNET_DISK_file_read (fi->fd, buf, max); 497 GNUNET_DISK_file_seek (fi->fd, offset, GNUNET_DISK_SEEK_SET)) ||
498 if (-1 == ret) 498 (-1 == (ret = GNUNET_DISK_file_read (fi->fd, buf, max))) )
499 { 499 {
500 GNUNET_asprintf (emsg, _("Could not read file `%s': %s"), fi->filename, 500 GNUNET_asprintf (emsg, _("Could not read file `%s': %s"), fi->filename,
501 STRERROR (errno)); 501 STRERROR (errno));