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 <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Richard Yao <[email protected]
Issue openzfs#2094
  • Loading branch information
behlendorf committed Feb 21, 2014
1 parent 0a8186e commit bd3b018
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
@@ -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;

0 comments on commit bd3b018

Please sign in to comment.