mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
fix code for pre-C99
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@746 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f8dbc2f8f8
commit
768a6f28e1
1 changed files with 3 additions and 2 deletions
|
|
@ -41,9 +41,8 @@ static int has_whined = 0;
|
||||||
static const char *devices[] = { "/dev/urandom", "/dev/random", NULL };
|
static const char *devices[] = { "/dev/urandom", "/dev/random", NULL };
|
||||||
|
|
||||||
static int random_proper(void *ret_data, size_t length) {
|
static int random_proper(void *ret_data, size_t length) {
|
||||||
assert(ret_data && length);
|
|
||||||
|
|
||||||
#ifdef OS_IS_WIN32
|
#ifdef OS_IS_WIN32
|
||||||
|
assert(ret_data && length);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
@ -53,6 +52,8 @@ static int random_proper(void *ret_data, size_t length) {
|
||||||
ssize_t r = 0;
|
ssize_t r = 0;
|
||||||
const char **device;
|
const char **device;
|
||||||
|
|
||||||
|
assert(ret_data && length);
|
||||||
|
|
||||||
device = devices;
|
device = devices;
|
||||||
|
|
||||||
while (*device) {
|
while (*device) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue