summaryrefslogtreecommitdiff
path: root/mbone/rat/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-12-01 22:03:18 +0000
committerrillig <rillig>2007-12-01 22:03:18 +0000
commitcf13b1e663f552a4ae17acfd12be5aeb261ceefd (patch)
treea3fa39d1250a3e7ea91d5e41ab63508d25355ddf /mbone/rat/patches
parent24cdeca079c1f686fc569c73e0d714ccd6288f1e (diff)
downloadpkgsrc-cf13b1e663f552a4ae17acfd12be5aeb261ceefd.tar.gz
Fixed invalid lvalue.
Diffstat (limited to 'mbone/rat/patches')
-rw-r--r--mbone/rat/patches/patch-ap15
1 files changed, 15 insertions, 0 deletions
diff --git a/mbone/rat/patches/patch-ap b/mbone/rat/patches/patch-ap
new file mode 100644
index 00000000000..181f23e6601
--- /dev/null
+++ b/mbone/rat/patches/patch-ap
@@ -0,0 +1,15 @@
+$NetBSD: patch-ap,v 1.1 2007/12/01 22:03:18 rillig Exp $
+
+src/codec_encoder.c:51: error: invalid lvalue in assignment
+
+--- src/codec_encoder.c.orig 1998-08-15 19:16:48.000000000 +0000
++++ src/codec_encoder.c 2007-12-01 22:01:28.000000000 +0000
+@@ -48,7 +48,7 @@ l16_encoding(sample *data, coded_unit *c
+ int i;
+ sample *d;
+
+- d = (sample *)c->data = (char *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE);
++ d = (sample *)(c->data = (char *)block_alloc(SAMPLES_PER_UNIT * BYTES_PER_SAMPLE));
+ c->data_len = SAMPLES_PER_UNIT * BYTES_PER_SAMPLE;
+ for (i=0; i < SAMPLES_PER_UNIT; i++) {
+ *d++ = htons(*data);