From 80d00833d879fc4688b7ef71eb3ac0d0dd3e0115 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 28 Sep 2016 15:18:30 +0200 Subject: [PATCH] src/io/{source_wavread,sink_wavwrite}.c: declare internal functions as static --- src/io/sink_wavwrite.c | 8 ++++++-- src/io/source_wavread.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/io/sink_wavwrite.c b/src/io/sink_wavwrite.c index 761f6e59..1db98504 100644 --- a/src/io/sink_wavwrite.c +++ b/src/io/sink_wavwrite.c @@ -68,8 +68,12 @@ struct _aubio_sink_wavwrite_t { 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); diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index ea07641d..6ff75e5c 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -60,8 +60,12 @@ struct _aubio_source_wavread_t { 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); -- 2.11.0