mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
sync with OpenBSD.
git-svn-id: file:///svn/unbound/trunk@3188 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
eca7c51ea6
commit
b32a248a42
3 changed files with 1 additions and 6 deletions
|
|
@ -68,12 +68,10 @@
|
|||
|
||||
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
|
||||
#define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x)))
|
||||
/* (portability) some compilers cannot take sizeof a function pointer */
|
||||
#define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*)))
|
||||
|
||||
int getentropy(void *buf, size_t len);
|
||||
|
||||
/* referencing functions in other link modules is not portable */
|
||||
extern int main(int, char *argv[]);
|
||||
static int gotdata(char *buf, size_t len);
|
||||
static int getentropy_urandom(void *buf, size_t len);
|
||||
|
|
|
|||
|
|
@ -70,12 +70,10 @@
|
|||
|
||||
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
|
||||
#define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x)))
|
||||
/* (portability) some compilers cannot take sizeof a function pointer */
|
||||
#define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*)))
|
||||
|
||||
int getentropy(void *buf, size_t len);
|
||||
|
||||
/* referencing functions in other link modules is not portable */
|
||||
extern int main(int, char *argv[]);
|
||||
static int gotdata(char *buf, size_t len);
|
||||
static int getentropy_urandom(void *buf, size_t len);
|
||||
|
|
|
|||
|
|
@ -61,12 +61,11 @@
|
|||
|
||||
#define HR(x, l) (SHA512_Update(&ctx, (char *)(x), (l)))
|
||||
#define HD(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (x)))
|
||||
/* (portability) some compilers cannot take sizeof a function pointer */
|
||||
#define HF(x) (SHA512_Update(&ctx, (char *)&(x), sizeof (void*)))
|
||||
|
||||
int getentropy(void *buf, size_t len);
|
||||
|
||||
/* referencing functions in other link modules is not portable */
|
||||
/* referencing functions in other link modules is not portable with sun-cc */
|
||||
/* extern int main(int, char *argv[]); */
|
||||
static int gotdata(char *buf, size_t len);
|
||||
static int getentropy_urandom(void *buf, size_t len, const char *path,
|
||||
|
|
|
|||
Loading…
Reference in a new issue