diff options
author | rillig <rillig> | 2007-12-01 22:03:18 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-12-01 22:03:18 +0000 |
commit | cf13b1e663f552a4ae17acfd12be5aeb261ceefd (patch) | |
tree | a3fa39d1250a3e7ea91d5e41ab63508d25355ddf /mbone/rat/patches | |
parent | 24cdeca079c1f686fc569c73e0d714ccd6288f1e (diff) | |
download | pkgsrc-cf13b1e663f552a4ae17acfd12be5aeb261ceefd.tar.gz |
Fixed invalid lvalue.
Diffstat (limited to 'mbone/rat/patches')
-rw-r--r-- | mbone/rat/patches/patch-ap | 15 |
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); |