aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index 5d37372ea..5f0e15e13 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -1062,10 +1062,10 @@ GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle * h,
1062 /* set to blocking, write, then set back */ 1062 /* set to blocking, write, then set back */
1063 flags = fcntl (h->fd, F_GETFL); 1063 flags = fcntl (h->fd, F_GETFL);
1064 if (0 != (flags & O_NONBLOCK)) 1064 if (0 != (flags & O_NONBLOCK))
1065 fcntl (h->fd, F_SETFL, flags - O_NONBLOCK); 1065 (void) fcntl (h->fd, F_SETFL, flags - O_NONBLOCK);
1066 ret = write (h->fd, buffer, n); 1066 ret = write (h->fd, buffer, n);
1067 if (0 == (flags & O_NONBLOCK)) 1067 if (0 == (flags & O_NONBLOCK))
1068 fcntl (h->fd, F_SETFL, flags); 1068 (void) fcntl (h->fd, F_SETFL, flags);
1069 return ret; 1069 return ret;
1070#endif 1070#endif
1071} 1071}