projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea248e
)
Make connect-stress test compile for win32
author
Maarten Bosmans
<mkbosmans@gmail.com>
Sat, 30 Apr 2011 19:46:30 +0000
(21:46 +0200)
committer
Colin Guthrie
<colin@mageia.org>
Sat, 30 Apr 2011 21:25:54 +0000
(22:25 +0100)
src/tests/connect-stress.c
patch
|
blob
|
history
diff --git
a/src/tests/connect-stress.c
b/src/tests/connect-stress.c
index
5476675
..
eadcf88
100644
(file)
--- a/
src/tests/connect-stress.c
+++ b/
src/tests/connect-stress.c
@@
-118,7
+118,7
@@
static void stream_write_callback(pa_stream *stream, size_t nbytes, void *userda
memset(silence, 0, sizeof(silence));
while (nbytes) {
- int n = MIN(sizeof(silence), nbytes);
+ int n =
PA_
MIN(sizeof(silence), nbytes);
pa_stream_write(stream, silence, n, NULL, 0, 0);
nbytes -= n;
}
@@
-195,9
+195,9
@@
int main(int argc, char *argv[]) {
for (i = 0; i < NTESTS; i++) {
connect(argv[0], &i);
- usleep(rand
om
() % 500000);
+ usleep(rand() % 500000);
disconnect();
- usleep(rand
om
() % 500000);
+ usleep(rand() % 500000);
}
fprintf(stderr, "Done.\n");