aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool_main.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-09-30 12:16:06 -0700
committerBrian Behlendorf <[email protected]>2019-09-30 12:16:06 -0700
commit3283f137d713dce293983e573a62c344ddcf8a19 (patch)
tree0ee2ca31612d7422d6ca750f59a9ab4ce632d5a3 /cmd/zpool/zpool_main.c
parent7bb0c294688ed121477536d7b4a7031c78a5706a (diff)
OpenZFS restructuring - zpool
Factor Linux specific functions out of the zpool command. Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Sean Eric Fagan <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: loli10K <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9333
Diffstat (limited to 'cmd/zpool/zpool_main.c')
-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 c28560a15..7a95add94 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -4643,7 +4643,7 @@ get_interval_count(int *argcp, char **argv, float *iv,
/*
* Determine if the last argument is an integer or a pool name
*/
- if (argc > 0 && isnumber(argv[argc - 1])) {
+ if (argc > 0 && zfs_isnumber(argv[argc - 1])) {
char *end;
errno = 0;
@@ -4673,7 +4673,7 @@ get_interval_count(int *argcp, char **argv, float *iv,
* If the last argument is also an integer, then we have both a count
* and an interval.
*/
- if (argc > 0 && isnumber(argv[argc - 1])) {
+ if (argc > 0 && zfs_isnumber(argv[argc - 1])) {
char *end;
errno = 0;