shithub: sox

Download patch

ref: 419f9fa85462e9d52e2db709d1f45c30dd1c5c82
parent: 902c120349a83b26776e9c75147b5d00120440af
author: rrt <rrt>
date: Sat Jan 27 20:53:08 EST 2007

Remove misleading casts (we normally ignore the return value of
st_readw, and have done just above; the point here is to ignore the
value returned in trash16 which is signalled by the variable's name).

--- a/src/wve.c
+++ b/src/wve.c
@@ -86,9 +86,9 @@
 
         st_readw(ft, (unsigned short *)&(p->repeats));
 
-        (void)st_readw(ft, (unsigned short *)&trash16);
-        (void)st_readw(ft, (unsigned short *)&trash16);
-        (void)st_readw(ft, (unsigned short *)&trash16);
+        st_readw(ft, (unsigned short *)&trash16);
+        st_readw(ft, (unsigned short *)&trash16);
+        st_readw(ft, (unsigned short *)&trash16);
 
         ft->signal.encoding = ST_ENCODING_ALAW;
         ft->signal.size = ST_SIZE_BYTE;