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 #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 #2094
  • Loading branch information
behlendorf committed Feb 21, 2014
1 parent ed9e836 commit 731782e
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 @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 731782e

Please sign in to comment.