mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Replace __va_list with va_list
Most of the code base already uses va_list, which is specified by iso-c. gcc/glibc provides 'typedef __gnuc_va_list va_list'. and when not using gcc/glibc we can't expect to find __gnuc_va_list. Signed-off-by: Alec Salazar <alec.j.salazar@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2588
This commit is contained in:
parent
0d5c500d6c
commit
22a11a5b5a
@ -132,7 +132,7 @@ typedef struct nv_alloc {
|
|||||||
} nv_alloc_t;
|
} nv_alloc_t;
|
||||||
|
|
||||||
struct nv_alloc_ops {
|
struct nv_alloc_ops {
|
||||||
int (*nv_ao_init)(nv_alloc_t *, __va_list);
|
int (*nv_ao_init)(nv_alloc_t *, va_list);
|
||||||
void (*nv_ao_fini)(nv_alloc_t *);
|
void (*nv_ao_fini)(nv_alloc_t *);
|
||||||
void *(*nv_ao_alloc)(nv_alloc_t *, size_t);
|
void *(*nv_ao_alloc)(nv_alloc_t *, size_t);
|
||||||
void (*nv_ao_free)(nv_alloc_t *, void *, size_t);
|
void (*nv_ao_free)(nv_alloc_t *, void *, size_t);
|
||||||
|
@ -148,9 +148,9 @@ extern void dprintf_setup(int *argc, char **argv);
|
|||||||
extern void __dprintf(const char *file, const char *func,
|
extern void __dprintf(const char *file, const char *func,
|
||||||
int line, const char *fmt, ...);
|
int line, const char *fmt, ...);
|
||||||
extern void cmn_err(int, const char *, ...);
|
extern void cmn_err(int, const char *, ...);
|
||||||
extern void vcmn_err(int, const char *, __va_list);
|
extern void vcmn_err(int, const char *, va_list);
|
||||||
extern void panic(const char *, ...);
|
extern void panic(const char *, ...);
|
||||||
extern void vpanic(const char *, __va_list);
|
extern void vpanic(const char *, va_list);
|
||||||
|
|
||||||
#define fm_panic panic
|
#define fm_panic panic
|
||||||
|
|
||||||
|
@ -29,8 +29,4 @@
|
|||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifndef __va_list
|
|
||||||
typedef __gnuc_va_list __va_list;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user