summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/namereg.c4
-rw-r--r--src/pulsecore/namereg.h2
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