diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-16 11:55:00 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-16 11:55:00 +0000 |
commit | eee5fc4106b389daeb709112f77b1a2e41ceee30 (patch) | |
tree | 8b007d7226fce9e648652c58ada69872d208b7e5 /src | |
parent | ec99de4572e4130d4ec1a04a8081cca1ab202495 (diff) | |
download | skalibs-eee5fc4106b389daeb709112f77b1a2e41ceee30.tar.xz |
Fix arc4random_addrandom detection for -Werror=pointer-sign
Diffstat (limited to 'src')
-rw-r--r-- | src/sysdeps/tryarc4random_addrandom.c | 3 |
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 ; } |