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:
parent
f8d55b95a5
commit
4abd7d80b2
|
@ -821,15 +821,15 @@ extern int zfs_nicestrtonum(libzfs_handle_t *, const char *, uint64_t *);
|
|||
#define STDERR_VERBOSE 0x02
|
||||
#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_get_stdout(const char *path, char *argv[], char *env[],
|
||||
char **lines[], int *lines_cnt);
|
||||
int libzfs_run_process_get_stdout_nopath(const char *path, char *argv[],
|
||||
char *env[], char **lines[], int *lines_cnt);
|
||||
int libzfs_run_process(const char *, char **, int);
|
||||
int libzfs_run_process_get_stdout(const char *, char *[], char *[],
|
||||
char **[], int *);
|
||||
int libzfs_run_process_get_stdout_nopath(const char *, char *[], char *[],
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue