]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
sync with OpenBSD.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Sat, 12 Jul 2014 20:07:41 +0000 (20:07 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Sat, 12 Jul 2014 20:07:41 +0000 (20:07 +0000)
git-svn-id: file:///svn/unbound/trunk@3188 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/getentropy_linux.c
compat/getentropy_osx.c
compat/getentropy_solaris.c

index 8bfafe444b6b1fa4244f2ec4e5087287c810e12c..098b375b81872f2a88d262e76c8ec4c7ec4baca8 100644 (file)
 
 #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);
index 8cf46e5eff360dd1a8c31d566886c1461f3c5a5f..b0f78bdfff52b091ea442acb88367b66e57a89f2 100644 (file)
 
 #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);
index f2857a8512a09cf34d744eca5aaf25782aa62dfe..e4650193548f6b27ed0358f9436a1c79ab2fab19 100644 (file)
 
 #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,