mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
zfs_main.c: fix unused variable error with GCC
zfs_setproctitle_init() is stubbed out on FreeBSD. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Ameer Hamza <ahamza@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Rob Wing <rob.fx907@gmail.com> Closes #14441
This commit is contained in:
parent
c799866b97
commit
326f1e3d88
@ -8672,7 +8672,6 @@ main(int argc, char **argv)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
const char *cmdname;
|
const char *cmdname;
|
||||||
char **newargv;
|
char **newargv;
|
||||||
extern char **environ;
|
|
||||||
|
|
||||||
(void) setlocale(LC_ALL, "");
|
(void) setlocale(LC_ALL, "");
|
||||||
(void) setlocale(LC_NUMERIC, "C");
|
(void) setlocale(LC_NUMERIC, "C");
|
||||||
|
@ -183,6 +183,7 @@ _LIBZUTIL_H int printf_color(const char *color, const char *format, ...);
|
|||||||
_LIBZUTIL_H const char *zfs_basename(const char *path);
|
_LIBZUTIL_H const char *zfs_basename(const char *path);
|
||||||
_LIBZUTIL_H ssize_t zfs_dirnamelen(const char *path);
|
_LIBZUTIL_H ssize_t zfs_dirnamelen(const char *path);
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
extern char **environ;
|
||||||
_LIBZUTIL_H void zfs_setproctitle_init(int argc, char *argv[], char *envp[]);
|
_LIBZUTIL_H void zfs_setproctitle_init(int argc, char *argv[], char *envp[]);
|
||||||
_LIBZUTIL_H void zfs_setproctitle(const char *fmt, ...);
|
_LIBZUTIL_H void zfs_setproctitle(const char *fmt, ...);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user