diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-26 00:27:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-26 00:27:02 +0200 |
commit | df2650e7a5167dbfc625727e0f189c21bc0e15e6 (patch) | |
tree | 1181815bfcc914905833ca3e865d73a9430a4358 | |
parent | c5cbeb5ed294af7aaae8a8bb674526da2fecdd84 (diff) |
fix return value of pa_namereg_make_valid_name()
-rw-r--r-- | src/pulsecore/namereg.c | 4 | ||||
-rw-r--r-- | src/pulsecore/namereg.h | 2 |
2 files changed, 3 insertions, 3 deletions
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 |