summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorcao <[email protected]>2016-10-12 02:32:34 +0800
committerBrian Behlendorf <[email protected]>2016-10-11 11:32:34 -0700
commitaf4db70f368d0e9c9ad90f0837a77e511a77b0a7 (patch)
treea071facf301004c913e4cd7acbcaf1f6a5e4abcf /lib
parentfad5fb01adaf34602969dd3b3ffe250c2cf273cc (diff)
Fix coverity defects: CID 147452, 147447, 147446
coverity scan CID:147452, Type:Unchecked return value from library coverity scan CID:147447, Type:Unchecked return value from library coverity scan CID:147446, Type:Unchecked return value from library Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: cao.xuewen <[email protected]> Closes #5264
Diffstat (limited to 'lib')
-rw-r--r--lib/libshare/libshare.c2
-rw-r--r--lib/libshare/nfs.c2
-rw-r--r--lib/libzpool/kernel.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libshare/libshare.c b/lib/libshare/libshare.c
index ea59dcdbc..89a4fe9aa 100644
--- a/lib/libshare/libshare.c
+++ b/lib/libshare/libshare.c
@@ -215,7 +215,7 @@ update_sharetab(sa_handle_impl_t impl_handle)
fsync(temp_fd);
fclose(temp_fp);
- rename(tempfile, "/etc/dfs/sharetab");
+ (void) rename(tempfile, "/etc/dfs/sharetab");
}
typedef struct update_cookie_s {
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c
index abcc1025b..58b4c8880 100644
--- a/lib/libshare/nfs.c
+++ b/lib/libshare/nfs.c
@@ -675,7 +675,7 @@ nfs_check_exportfs(void)
unlink(nfs_exportfs_tempfile);
- fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC);
+ (void) fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC);
pid = fork();
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c
index 579626220..f4bda8a39 100644
--- a/lib/libzpool/kernel.c
+++ b/lib/libzpool/kernel.c
@@ -1045,7 +1045,7 @@ kobj_get_filesize(struct _buf *file, uint64_t *size)
void
delay(clock_t ticks)
{
- poll(0, 0, ticks * (1000 / hz));
+ (void) poll(0, 0, ticks * (1000 / hz));
}
/*