diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-21 23:30:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-03 20:25:35 +0200 |
commit | 2c3cc4cca7d829c90b44f1bd8b5392e763b9cea1 (patch) | |
tree | 074395b08f2aafe79ccce855ad8ef93cca782460 /pulse | |
parent | e5b760950a05220edce9f074525522d7144f28b4 (diff) |
Make pulse_new() a proper C function
C functions taking no argument need a (void) as argument list. It's C++ where
() is allowed too.
Diffstat (limited to 'pulse')
-rw-r--r-- | pulse/pulse.c | 2 | ||||
-rw-r--r-- | pulse/pulse.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pulse/pulse.c b/pulse/pulse.c index 56ccb2e..81ea443 100644 --- a/pulse/pulse.c +++ b/pulse/pulse.c @@ -124,7 +124,7 @@ static void context_state_cb(pa_context * c, void *userdata) } } -snd_pulse_t *pulse_new() +snd_pulse_t *pulse_new(void) { snd_pulse_t *p; int fd[2] = { -1, -1 }; diff --git a/pulse/pulse.h b/pulse/pulse.h index 4b8ea2d..9dd51a9 100644 --- a/pulse/pulse.h +++ b/pulse/pulse.h @@ -48,7 +48,7 @@ int pulse_wait_operation(snd_pulse_t * p, pa_operation * o); int pulse_wait_stream_state(snd_pulse_t * p, pa_stream * stream, pa_stream_state_t target); -snd_pulse_t *pulse_new(); +snd_pulse_t *pulse_new(void); void pulse_free(snd_pulse_t * p); int pulse_connect(snd_pulse_t * p, const char *server); |