mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Tim Chase <tim@chase2k.com> Signed-off-by: Richard Yao <ryao@gentoo.or Issue #2094
This commit is contained in:
parent
ed9e8368d3
commit
731782ec31
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user