This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  eea248e233301cc7b243114b975d588c80056625 (commit)

- Log -----------------------------------------------------------------
6e319e5 Make connect-stress test compile for win32
-----------------------------------------------------------------------

Summary of changes:
 src/tests/connect-stress.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------

commit 6e319e5182b2d9d8d034ee2c9c0ca5027787b0ce
Author: Maarten Bosmans <[email protected]>
Date:   Sat Apr 30 21:46:30 2011 +0200

    Make connect-stress test compile for win32

diff --git a/src/tests/connect-stress.c b/src/tests/connect-stress.c
index 5476675..eadcf88 100644
--- 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(random() % 500000);
+        usleep(rand() % 500000);
         disconnect();
-        usleep(random() % 500000);
+        usleep(rand() % 500000);
     }
 
     fprintf(stderr, "Done.\n");

-- 
hooks/post-receive
PulseAudio Sound Server
_______________________________________________
pulseaudio-commits mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-commits

Reply via email to