summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-05-23 14:39:15 +0000
committerLennart Poettering <lennart@poettering.net>2006-05-23 14:39:15 +0000
commit8f111b0adde21ef75cdfb7d6cf30169219256b22 (patch)
treedfa29c2f034c4c26bc5f26f1b9826532658d71ce
parent1b72d026344866f59ee2caaa66250d5932faea78 (diff)
change return type of pa_cstrerror() to "const char*"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@949 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/polyp/error.c2
-rw-r--r--src/polyp/error.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/polyp/error.c b/src/polyp/error.c
index ee9ce51b..0e3b506f 100644
--- a/src/polyp/error.c
+++ b/src/polyp/error.c
@@ -170,7 +170,7 @@ static char *tlsstr;
#endif
-char* pa_cstrerror(int errnum) {
+const char* pa_cstrerror(int errnum) {
const char *origbuf;
#ifdef HAVE_STRERROR_R
diff --git a/src/polyp/error.h b/src/polyp/error.h
index 33507bfd..1d7b2ca6 100644
--- a/src/polyp/error.h
+++ b/src/polyp/error.h
@@ -37,7 +37,7 @@ const char* pa_strerror(int error);
* string to UTF-8. The function is thread safe but the returned string is
* only guaranteed to exist until the thread exits or pa_cstrerror() is
* called again from the same thread. */
-char* pa_cstrerror(int errnum);
+const char* pa_cstrerror(int errnum);
PA_C_DECL_END