commit: e1f143be9df6fed4eac5532cd5fdbc195c76c10b
parent 54fbfc77095bf28e85e9d0d8bab125a7aa9c5102
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 30 Jan 2022 16:14:11 +0100
bin/sizeof: Drop arc4random
Diffstat:
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/bin/sizeof.c b/bin/sizeof.c
@@ -3,15 +3,10 @@
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
#define _POSIX_C_SOURCE 200809L
-#if __OpenBSD__
-#include <stdlib.h>
-#else
-#include <bsd/stdlib.h>
-#endif
-
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
static const char *format = "sizeof(%s) == %d bytes; %d bits\n";
static const char *format_m = "sizeof(%s) == %d bytes; %d bits; (MIN:MAX) == (%d:%d)\n";
@@ -46,7 +41,6 @@ main(void)
print_size(sizeof(char[32]), "char[32]");
print_size(sizeof(char[2]), "char[2]");
print_size(sizeof('a'), "'a'");
- print_size(sizeof(arc4random()), "arc4random()");
return 0;
}