Commit 8a7b9d9f authored by Max Kellermann's avatar Max Kellermann

dsd2pcm: fix prototypes

Fixes gcc warnings.
parent 3fcf463f
...@@ -87,7 +87,7 @@ static float ctables[CTABLES][256]; ...@@ -87,7 +87,7 @@ static float ctables[CTABLES][256];
static unsigned char bitreverse[256]; static unsigned char bitreverse[256];
static int precalculated = 0; static int precalculated = 0;
static void precalc() static void precalc(void)
{ {
int t, e, m, k; int t, e, m, k;
double acc; double acc;
...@@ -117,7 +117,7 @@ struct dsd2pcm_ctx_s ...@@ -117,7 +117,7 @@ struct dsd2pcm_ctx_s
unsigned fifopos; unsigned fifopos;
}; };
extern dsd2pcm_ctx* dsd2pcm_init() extern dsd2pcm_ctx* dsd2pcm_init(void)
{ {
dsd2pcm_ctx* ptr; dsd2pcm_ctx* ptr;
if (!precalculated) precalc(); if (!precalculated) precalc();
......
...@@ -20,7 +20,7 @@ typedef struct dsd2pcm_ctx_s dsd2pcm_ctx; ...@@ -20,7 +20,7 @@ typedef struct dsd2pcm_ctx_s dsd2pcm_ctx;
* POSIX thread-safety definition because it modifies global state * POSIX thread-safety definition because it modifies global state
* (lookup tables are computed during the first call) * (lookup tables are computed during the first call)
*/ */
extern dsd2pcm_ctx* dsd2pcm_init(); extern dsd2pcm_ctx* dsd2pcm_init(void);
/** /**
* deinitializes a "dsd2pcm engine" * deinitializes a "dsd2pcm engine"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment