gnunet-fuse

GNUnet file-sharing directory mounting via FUSE
Log | Files | Refs | Submodules | README | LICENSE

commit 0c8b782bd737131b0db69b25f8f6b49d7fb8a0b9
parent 66851a06e2f9f2388ed4cfd29935e3ee75e35e98
Author: ng0 <ng0@n0.is>
Date:   Tue, 19 Nov 2019 15:45:54 +0000

follow-up, for strerror

Diffstat:
Msrc/fuse/gnunet-fuse.c | 6+++---
Msrc/fuse/read.c | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/fuse/gnunet-fuse.c b/src/fuse/gnunet-fuse.c @@ -132,7 +132,7 @@ GNUNET_FUSE_load_directory (struct GNUNET_FUSE_PathInfo *pi, 0, GNUNET_FS_uri_chk_get_file_size (pi->uri))) { - UNLINK (pi->tmpfile); + unlink (pi->tmpfile); GNUNET_free (pi->tmpfile); pi->tmpfile = NULL; *eno = EIO; /* low level IO error */ @@ -352,7 +352,7 @@ GNUNET_FUSE_path_info_delete (struct GNUNET_FUSE_PathInfo *pi) { if (NULL != pi->tmpfile) { - GNUNET_break (0 == UNLINK (pi->tmpfile)); + GNUNET_break (0 == unlink (pi->tmpfile)); GNUNET_free (pi->tmpfile); } GNUNET_free (pi->filename); @@ -456,7 +456,7 @@ run (void *cls, fprintf (stderr, _("Failed to mount `%s': %s\n"), source, - STRERROR (eno)); + strerror (eno)); ret = 5; cleanup_path_info (root); GNUNET_FS_uri_destroy (uri); diff --git a/src/fuse/read.c b/src/fuse/read.c @@ -154,7 +154,7 @@ gn_read (const char *path, char *buf, size_t size, off_t offset, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error reading from file `%s': %s\n", path, - STRERROR (errno)); + strerror (errno)); GNUNET_DISK_file_close (fh); GNUNET_FUSE_path_info_done (path_info); return - eno;