diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-04-18 16:33:17 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-04-18 16:33:17 +0000 |
commit | 768a6f28e1345da1a0e8d51ae50455835ed8f677 (patch) | |
tree | 8636af7d017796f8e5a51b316fc8ec0ae27097e0 /src/polypcore/random.c | |
parent | f8dbc2f8f8155fcac20bf4aec703022c350a14bd (diff) |
fix code for pre-C99
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@746 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/random.c')
-rw-r--r-- | src/polypcore/random.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/polypcore/random.c b/src/polypcore/random.c index fe75a614..1221206f 100644 --- a/src/polypcore/random.c +++ b/src/polypcore/random.c @@ -41,9 +41,8 @@ static int has_whined = 0; static const char *devices[] = { "/dev/urandom", "/dev/random", NULL }; static int random_proper(void *ret_data, size_t length) { - assert(ret_data && length); - #ifdef OS_IS_WIN32 + assert(ret_data && length); return -1; @@ -53,6 +52,8 @@ static int random_proper(void *ret_data, size_t length) { ssize_t r = 0; const char **device; + assert(ret_data && length); + device = devices; while (*device) { |