mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
libspl: declare aok extern in header
Rather than defining a new instance of 'aok' in every compilation unit which includes this header, there is a single instance defined in zone.c, and the header now only declares an extern. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Paul Zuchowski <pzuchowski@datto.com> Signed-off-by: Nick Black <dankamongmen@gmail.com> Closes #9752
This commit is contained in:
parent
bb04f9c195
commit
0d55a0957f
@ -34,7 +34,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifndef _KERNEL
|
||||
int aok;
|
||||
extern int aok;
|
||||
#endif
|
||||
|
||||
static inline int
|
||||
|
@ -27,6 +27,8 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
int aok = 0;
|
||||
|
||||
zoneid_t
|
||||
getzoneid()
|
||||
{
|
||||
|
@ -42,6 +42,8 @@
|
||||
typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
|
||||
typedef unsigned long long u_longlong_t;
|
||||
|
||||
int aok = 0;
|
||||
|
||||
/*
|
||||
* Test messages from:
|
||||
* http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf
|
||||
|
Loading…
Reference in New Issue
Block a user