From: Guillem Jover Date: Fri, 11 Dec 2009 22:12:26 +0000 (+0100) Subject: Move arc4random declarations to X-Git-Tag: 0.2.0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c9182b85e785159b349106c04ccc1b4ec045350;p=thirdparty%2Flibbsd.git Move arc4random declarations to This is were they are located on the BSDs. --- diff --git a/include/bsd/bsd.h b/include/bsd/bsd.h index 237fe16..437cccc 100644 --- a/include/bsd/bsd.h +++ b/include/bsd/bsd.h @@ -39,7 +39,6 @@ #include #include #include -#include #include #include diff --git a/include/bsd/random.h b/include/bsd/random.h index f76adea..f4ef7d3 100644 --- a/include/bsd/random.h +++ b/include/bsd/random.h @@ -27,14 +27,9 @@ #ifndef LIBBSD_RANDOM_H #define LIBBSD_RANDOM_H -#include -#include +#warning "This header is deprecated, use the one in bsd/stdlib.h instead." -__BEGIN_DECLS -u_int32_t arc4random(); -void arc4random_stir(); -void arc4random_addrandom(u_char *dat, int datlen); -__END_DECLS +#include #endif diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 453c33d..2357334 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -38,6 +38,10 @@ #include __BEGIN_DECLS +u_int32_t arc4random(); +void arc4random_stir(); +void arc4random_addrandom(u_char *dat, int datlen); + int dehumanize_number(const char *str, int64_t *size); const char *fmtcheck (const char *, const char *);