aboutsummaryrefslogtreecommitdiff
path: root/audio/mpg123/files
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-03-03 00:23:13 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-03-03 00:23:13 +0000
commitfd5612a0294e6f9fb74d8d2cbef05b1098553b27 (patch)
tree9db05fe454e6ec90945a60d1578cc628306f614c /audio/mpg123/files
parentc22c3b06b986e5b4ffb9a527fb5738f6af719663 (diff)
Notes
Diffstat (limited to 'audio/mpg123/files')
-rw-r--r--audio/mpg123/files/patch-ab31
-rw-r--r--audio/mpg123/files/patch-ae11
2 files changed, 40 insertions, 2 deletions
diff --git a/audio/mpg123/files/patch-ab b/audio/mpg123/files/patch-ab
index 164299b25200..76b32c339984 100644
--- a/audio/mpg123/files/patch-ab
+++ b/audio/mpg123/files/patch-ab
@@ -1,5 +1,5 @@
---- mpg123.c.orig Fri Jun 18 14:18:11 1999
-+++ mpg123.c Fri May 5 00:07:02 2000
+--- mpg123.c.orig Fri Jun 18 05:18:11 1999
++++ mpg123.c Fri Mar 2 16:08:04 2001
@@ -27,6 +27,10 @@
#include <sched.h>
#endif
@@ -11,6 +11,33 @@
#include "mpg123.h"
#include "getlopt.h"
#include "buffer.h"
+@@ -223,7 +227,7 @@
+ {
+ int loop, rannum;
+
+- srand(time(NULL));
++ srandomdev();
+ if(shuffleord)
+ free(shuffleord);
+ shuffleord = (int *) malloc((numfiles + 1) * sizeof(int));
+@@ -239,7 +243,7 @@
+ /* now shuffle them */
+ if(numfiles >= 2) {
+ for (loop = 0; loop < numfiles; loop++) {
+- rannum = (rand() % (numfiles * 4 - 4)) / 4;
++ rannum = (random() % (numfiles * 4 - 4)) / 4;
+ rannum += (rannum >= loop);
+ shuffleord[loop] ^= shuffleord[rannum];
+ shuffleord[rannum] ^= shuffleord[loop];
+@@ -381,7 +385,7 @@
+ curfile++;
+ }
+ else {
+- newfile = shufflist[ rand() % shuffle_listsize ];
++ newfile = shufflist[ random() % shuffle_listsize ];
+ }
+
+ return newfile;
@@ -784,6 +788,10 @@
_wildcard(&argc,&argv);
#endif
diff --git a/audio/mpg123/files/patch-ae b/audio/mpg123/files/patch-ae
new file mode 100644
index 000000000000..21c9bbcc9401
--- /dev/null
+++ b/audio/mpg123/files/patch-ae
@@ -0,0 +1,11 @@
+--- control_generic.c.orig Fri Mar 2 16:10:49 2001
++++ control_generic.c Fri Mar 2 16:10:51 2001
+@@ -26,6 +26,8 @@
+ extern int buffer_pid;
+ extern int tabsel_123[2][3][16];
+
++void generic_sendmsg (char *, ...) __printflike(1,2);
++
+ void generic_sendmsg (char *fmt, ...)
+ {
+ va_list ap;