mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +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
635a01aafd
commit
8cda5c5ce9
@ -34,7 +34,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
int aok;
|
extern int aok;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
int aok = 0;
|
||||||
|
|
||||||
zoneid_t
|
zoneid_t
|
||||||
getzoneid()
|
getzoneid()
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/stdtypes.h>
|
#include <sys/stdtypes.h>
|
||||||
|
|
||||||
|
int aok = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test messages from:
|
* Test messages from:
|
||||||
* http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf
|
* http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user