Skip to content

Commit

Permalink
Use expected zpool_status_t type
Browse files Browse the repository at this point in the history
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 openzfs#2094
because that's when I noticed this issue.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Richard Yao <ryao@gentoo.or
Issue openzfs#2094
  • Loading branch information
behlendorf authored and ryao committed Apr 9, 2014
1 parent db25bdb commit 496ce01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,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;
Expand Down Expand Up @@ -4119,7 +4119,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;
Expand Down

0 comments on commit 496ce01

Please sign in to comment.