aboutsummaryrefslogtreecommitdiffstats
path: root/src/dsd2pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-03 12:14:07 +0200
committerMax Kellermann <max@duempel.org>2011-10-04 21:40:31 +0200
commit8a7b9d9f454fd379a4a39f5fb4d4a4cb85466c71 (patch)
tree7edf2e615230664703c36749b37cc89810a3adc9 /src/dsd2pcm
parent3fcf463f9ef42aa0da0da4f9d0aed2e7aeda28bb (diff)
downloadmpd-8a7b9d9f454fd379a4a39f5fb4d4a4cb85466c71.tar.gz
mpd-8a7b9d9f454fd379a4a39f5fb4d4a4cb85466c71.tar.xz
mpd-8a7b9d9f454fd379a4a39f5fb4d4a4cb85466c71.zip
dsd2pcm: fix prototypes
Fixes gcc warnings.
Diffstat (limited to '')
-rw-r--r--src/dsd2pcm/dsd2pcm.c4
-rw-r--r--src/dsd2pcm/dsd2pcm.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dsd2pcm/dsd2pcm.c b/src/dsd2pcm/dsd2pcm.c
index 31f9a106d..315820f60 100644
--- a/src/dsd2pcm/dsd2pcm.c
+++ b/src/dsd2pcm/dsd2pcm.c
@@ -87,7 +87,7 @@ static float ctables[CTABLES][256];
static unsigned char bitreverse[256];
static int precalculated = 0;
-static void precalc()
+static void precalc(void)
{
int t, e, m, k;
double acc;
@@ -117,7 +117,7 @@ struct dsd2pcm_ctx_s
unsigned fifopos;
};
-extern dsd2pcm_ctx* dsd2pcm_init()
+extern dsd2pcm_ctx* dsd2pcm_init(void)
{
dsd2pcm_ctx* ptr;
if (!precalculated) precalc();
diff --git a/src/dsd2pcm/dsd2pcm.h b/src/dsd2pcm/dsd2pcm.h
index 26f6b6f10..80e8ce0cc 100644
--- a/src/dsd2pcm/dsd2pcm.h
+++ b/src/dsd2pcm/dsd2pcm.h
@@ -20,7 +20,7 @@ typedef struct dsd2pcm_ctx_s dsd2pcm_ctx;
* POSIX thread-safety definition because it modifies global state
* (lookup tables are computed during the first call)
*/
-extern dsd2pcm_ctx* dsd2pcm_init();
+extern dsd2pcm_ctx* dsd2pcm_init(void);
/**
* deinitializes a "dsd2pcm engine"