projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8dbc2f
)
fix code for pre-C99
author
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Apr 2006 16:33:17 +0000
(16:33 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Apr 2006 16:33:17 +0000
(16:33 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@746
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/polypcore/random.c
patch
|
blob
|
history
diff --git
a/src/polypcore/random.c
b/src/polypcore/random.c
index
fe75a61
..
1221206
100644
(file)
--- 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) {