diff options
author | Max Kellermann <max@duempel.org> | 2009-02-25 19:53:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-25 19:53:56 +0100 |
commit | 6aa6def7767c593e70c8ef686a7215068e06afce (patch) | |
tree | 247cb097b3aa5ee1c56582309055b374896f0842 /src/output_init.c | |
parent | 9512704055793e62e08f5d134297af47c5101dcb (diff) | |
download | mpd-6aa6def7767c593e70c8ef686a7215068e06afce.tar.gz mpd-6aa6def7767c593e70c8ef686a7215068e06afce.tar.xz mpd-6aa6def7767c593e70c8ef686a7215068e06afce.zip |
output: audio_output_init() returns bool
Return true/false instead of 1/0.
Diffstat (limited to 'src/output_init.c')
-rw-r--r-- | src/output_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output_init.c b/src/output_init.c index 26af73fd3..ab26e76ef 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -41,7 +41,7 @@ if(bp) str = bp->value; \ } -int +bool audio_output_init(struct audio_output *ao, const struct config_param *param) { const char *name = NULL; @@ -82,7 +82,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param) if (plugin == NULL) { g_warning("Unable to detect an audio device\n"); - return 0; + return false; } name = "default detected output"; @@ -116,7 +116,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param) format ? &ao->config_audio_format : NULL, param); if (ao->data == NULL) - return 0; + return false; - return 1; + return true; } |