[polypaudio-commits] r746 - /trunk/src/polypcore/random.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Apr 18 09:33:18 PDT 2006


Author: lennart
Date: Tue Apr 18 18:33:17 2006
New Revision: 746

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=746&root=polypaudio&view=rev
Log:
fix code for pre-C99

Modified:
    trunk/src/polypcore/random.c

Modified: trunk/src/polypcore/random.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/random.c?rev=746&root=polypaudio&r1=745&r2=746&view=diff
==============================================================================
--- trunk/src/polypcore/random.c (original)
+++ trunk/src/polypcore/random.c Tue Apr 18 18:33:17 2006
@@ -41,9 +41,8 @@
 static const char *devices[] = { "/dev/urandom", "/dev/random", NULL };
 
 static int random_proper(void *ret_data, size_t length) {
+#ifdef OS_IS_WIN32
     assert(ret_data && length);
-
-#ifdef OS_IS_WIN32
 
     return -1;
 
@@ -52,6 +51,8 @@
     int fd, ret;
     ssize_t r = 0;
     const char **device;
+
+    assert(ret_data && length);
 
     device = devices;
 




More information about the pulseaudio-commits mailing list