]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Move arc4random declarations to <bsd/stdlib.h>
authorGuillem Jover <guillem@hadrons.org>
Fri, 11 Dec 2009 22:12:26 +0000 (23:12 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 12 Dec 2009 00:11:08 +0000 (01:11 +0100)
This is were they are located on the BSDs.

include/bsd/bsd.h
include/bsd/random.h
include/bsd/stdlib.h

index 237fe1693a83d1a9bfc933e30413cb07d75b5dcb..437cccc775772103891a358f01d975ee903e0707 100644 (file)
@@ -39,7 +39,6 @@
 #include <bsd/string.h>
 #include <bsd/err.h>
 #include <bsd/getopt.h>
-#include <bsd/random.h>
 #include <bsd/md5.h>
 #include <time.h>
 
index f76adea062f797bb8450f56fe371c957230a259f..f4ef7d31baa16cbd98019a0ace233ee5d2f63749 100644 (file)
 #ifndef LIBBSD_RANDOM_H
 #define LIBBSD_RANDOM_H
 
-#include <sys/cdefs.h>
-#include <sys/types.h>
+#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 <bsd/stdlib.h>
 
 #endif
 
index 453c33dc8aa438ad696ff55ca93021a7eaf0a787..2357334d911f295c2b536705a402386ac8623f95 100644 (file)
 #include <libutil.h>
 
 __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 *);