ref: 80d00833d879fc4688b7ef71eb3ac0d0dd3e0115
parent: afa21cdc1e09a9e0081f228476bc19ad55f9bccf
author: Paul Brossier <piem@piem.org>
date: Wed Sep 28 11:18:30 EDT 2016
src/io/{source_wavread,sink_wavwrite}.c: declare internal functions as static
--- a/src/io/sink_wavwrite.c
+++ b/src/io/sink_wavwrite.c
@@ -68,8 +68,12 @@
unsigned short *scratch_data;
};
-unsigned char *write_little_endian (unsigned int s, unsigned char *str, unsigned int length);
-unsigned char *write_little_endian (unsigned int s, unsigned char *str, unsigned int length) {
+static unsigned char *write_little_endian (unsigned int s, unsigned char *str,
+ unsigned int length);
+
+static unsigned char *write_little_endian (unsigned int s, unsigned char *str,
+ unsigned int length)
+{
uint_t i;
for (i = 0; i < length; i++) {
str[i] = s >> (i * 8);
--- a/src/io/source_wavread.c
+++ b/src/io/source_wavread.c
@@ -60,8 +60,12 @@
fmat_t *output;
};
-unsigned int read_little_endian (unsigned char *buf, unsigned int length);
-unsigned int read_little_endian (unsigned char *buf, unsigned int length) {
+static unsigned int read_little_endian (unsigned char *buf,
+ unsigned int length);
+
+static unsigned int read_little_endian (unsigned char *buf,
+ unsigned int length)
+{
uint_t i, ret = 0;
for (i = 0; i < length; i++) {
ret += buf[i] << (i * 8);