summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-16 11:55:00 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-16 11:55:00 +0000
commiteee5fc4106b389daeb709112f77b1a2e41ceee30 (patch)
tree8b007d7226fce9e648652c58ada69872d208b7e5 /src
parentec99de4572e4130d4ec1a04a8081cca1ab202495 (diff)
downloadskalibs-eee5fc4106b389daeb709112f77b1a2e41ceee30.tar.xz
Fix arc4random_addrandom detection for -Werror=pointer-sign
Diffstat (limited to 'src')
-rw-r--r--src/sysdeps/tryarc4random_addrandom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysdeps/tryarc4random_addrandom.c b/src/sysdeps/tryarc4random_addrandom.c
index e89a65c..d1394bc 100644
--- a/src/sysdeps/tryarc4random_addrandom.c
+++ b/src/sysdeps/tryarc4random_addrandom.c
@@ -7,6 +7,7 @@
int main (void)
{
- arc4random_addrandom("", 1) ;
+ unsigned char *blah = "" ;
+ arc4random_addrandom(blah, 1) ;
return 0 ;
}