From: Lennart Poettering Date: Wed, 25 Jun 2008 22:27:02 +0000 (+0200) Subject: fix return value of pa_namereg_make_valid_name() X-Git-Tag: v0.9.11~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df2650e7a5167dbfc625727e0f189c21bc0e15e6;p=platform%2Fupstream%2Fpulseaudio.git fix return value of pa_namereg_make_valid_name() --- diff --git a/src/pulsecore/namereg.c b/src/pulsecore/namereg.c index 38d308c1f..30420546e 100644 --- a/src/pulsecore/namereg.c +++ b/src/pulsecore/namereg.c @@ -70,7 +70,7 @@ pa_bool_t pa_namereg_is_valid_name(const char *name) { return TRUE; } -const char* pa_namereg_make_valid_name(const char *name) { +char* pa_namereg_make_valid_name(const char *name) { const char *a; char *b, *n; @@ -109,7 +109,7 @@ const char *pa_namereg_register(pa_core *c, const char *name, pa_namereg_type_t return NULL; if ((type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE) && - !pa_namereg_is_valid_name(name) ) { + !pa_namereg_is_valid_name(name)) { if (fail) return NULL; diff --git a/src/pulsecore/namereg.h b/src/pulsecore/namereg.h index b460382f3..3c1de8e73 100644 --- a/src/pulsecore/namereg.h +++ b/src/pulsecore/namereg.h @@ -44,6 +44,6 @@ const char *pa_namereg_get_default_sink_name(pa_core *c); const char *pa_namereg_get_default_source_name(pa_core *c); pa_bool_t pa_namereg_is_valid_name(const char *name); -const char* pa_namereg_make_valid_name(const char *name); +char* pa_namereg_make_valid_name(const char *name); #endif