Remove parameter names from libzfs.h signatures

Most of libzfs.h doesn't provide names for the parameters
in its signatures. These few functions included them. That
wouldn't be a problem, per se, but the 'lines' parameter
conflicts with the 'lines' #define from terminfo's term.h,
present for at least a decade. This makes it difficult to
compile code making use of both ZFS and terminfo.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Nick Black <dankamongmen@gmail.com>
Closes #9821
This commit is contained in:
Nick Black 2020-01-08 20:50:05 -05:00 committed by Brian Behlendorf
parent f8d55b95a5
commit 4abd7d80b2
1 changed files with 7 additions and 7 deletions

View File

@ -821,15 +821,15 @@ extern int zfs_nicestrtonum(libzfs_handle_t *, const char *, uint64_t *);
#define STDERR_VERBOSE 0x02 #define STDERR_VERBOSE 0x02
#define NO_DEFAULT_PATH 0x04 /* Don't use $PATH to lookup the command */ #define NO_DEFAULT_PATH 0x04 /* Don't use $PATH to lookup the command */
int libzfs_run_process(const char *, char **, int flags); int libzfs_run_process(const char *, char **, int);
int libzfs_run_process_get_stdout(const char *path, char *argv[], char *env[], int libzfs_run_process_get_stdout(const char *, char *[], char *[],
char **lines[], int *lines_cnt); char **[], int *);
int libzfs_run_process_get_stdout_nopath(const char *path, char *argv[], int libzfs_run_process_get_stdout_nopath(const char *, char *[], char *[],
char *env[], char **lines[], int *lines_cnt); char **[], int *);
void libzfs_free_str_array(char **strs, int count); void libzfs_free_str_array(char **, int);
int libzfs_envvar_is_set(char *envvar); int libzfs_envvar_is_set(char *);
/* /*
* Utility functions for zfs version * Utility functions for zfs version