summaryrefslogtreecommitdiffstats
path: root/cmd/zpool
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-02-20 19:42:15 -0800
committerBrian Behlendorf <[email protected]>2014-02-21 12:10:40 -0800
commit731782ec316656c0d1b78d6c9f0194d35ebb7eff (patch)
tree1dfbdb58b898f2b92724e987fc425a5cf8e2d0a9 /cmd/zpool
parented9e8368d3e6ed565174270bd7f5fb7caeac9727 (diff)
Use expected zpool_status_t type
Both the zpool_import_status() and zpool_get_status() functions return the zpool_status_t enum. This explicit type should be used rather than the more generic int type. This patch makes no functional change and should only be considered code cleanup. It happens to have been done in the context of #2094 because that's when I noticed this issue. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Richard Yao <[email protected] Issue #2094
Diffstat (limited to 'cmd/zpool')
-rw-r--r--cmd/zpool/zpool_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index a856fd49e..f98bca14e 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -1608,7 +1608,7 @@ show_import(nvlist_t *config)
uint64_t guid;
char *msgid;
nvlist_t *nvroot;
- int reason;
+ zpool_status_t reason;
const char *health;
uint_t vsc;
int namewidth;
@@ -4125,7 +4125,7 @@ status_callback(zpool_handle_t *zhp, void *data)
status_cbdata_t *cbp = data;
nvlist_t *config, *nvroot;
char *msgid;
- int reason;
+ zpool_status_t reason;
const char *health;
uint_t c;
vdev_stat_t *vs;