aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/libzfs_diff.c
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2017-02-08 01:02:27 +0300
committerBrian Behlendorf <[email protected]>2017-02-07 14:02:27 -0800
commit23d70cdef108005ecf4d862e0af01d08dabbc9c7 (patch)
tree8af0ff2442871fa26127476539d87579681490a3 /lib/libzfs/libzfs_diff.c
parentbef78122e606945efbf2e08845e7d5e8ead93c3c (diff)
OpenZFS 6931 - lib/libzfs: cleanup gcc warnings
Authored by: Igor Kozhukhov <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Approved by: Robert Mustacchi <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: George Melikov <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/6931 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/88f61de Closes #5741
Diffstat (limited to 'lib/libzfs/libzfs_diff.c')
-rw-r--r--lib/libzfs/libzfs_diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_diff.c b/lib/libzfs/libzfs_diff.c
index c3e7a4472..e88867d2d 100644
--- a/lib/libzfs/libzfs_diff.c
+++ b/lib/libzfs/libzfs_diff.c
@@ -24,6 +24,7 @@
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2015 by Delphix. All rights reserved.
* Copyright 2016 Joyent, Inc.
+ * Copyright 2016 Igor Kozhukhov <[email protected]>
*/
/*
@@ -345,7 +346,7 @@ write_inuse_diffs(FILE *fp, differ_info_t *di, dmu_diff_record_t *dr)
int err;
for (o = dr->ddr_first; o <= dr->ddr_last; o++) {
- if ((err = write_inuse_diffs_one(fp, di, o)))
+ if ((err = write_inuse_diffs_one(fp, di, o)) != 0)
return (err);
}
return (0);