summary refs log tree commit diff
path: root/src/tool
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-10-05 20:16:35 +0200
committerAlexander Barton <alex@barton.de>2010-10-05 20:16:35 +0200
commit3a826b774a10a069d2f18b1a07842acf8da8fc49 (patch)
treefcf6ccf2336510d5eae1a5c17f141132044fec2a /src/tool
parentc51cc88eb08eb3aa3fd626347bd9c87f2ae7f9c1 (diff)
downloadngircd-3a826b774a10a069d2f18b1a07842acf8da8fc49.tar.gz
ngircd-3a826b774a10a069d2f18b1a07842acf8da8fc49.zip
const'ify ngt_SyslogFacilityName() function
This fixes the following gcc compiler warning:

tool.c: In function 'ngt_SyslogFacilityName':
tool.c:195: warning: return discards qualifiers from pointer target type
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/tool.c2
-rw-r--r--src/tool/tool.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tool/tool.c b/src/tool/tool.c
index fa69ffb1..9e290749 100644
--- a/src/tool/tool.c
+++ b/src/tool/tool.c
@@ -186,7 +186,7 @@ CODE facilitynames[] = {
 #endif
 
 
-GLOBAL char
+GLOBAL const char
 *ngt_SyslogFacilityName(int Facility)
 {
 	int i = 0;
diff --git a/src/tool/tool.h b/src/tool/tool.h
index ea9e96b9..4513a232 100644
--- a/src/tool/tool.h
+++ b/src/tool/tool.h
@@ -30,7 +30,7 @@ GLOBAL char *ngt_UpperStr PARAMS((char *String ));
 GLOBAL char *ngt_LowerStr PARAMS((char *String ));
 
 #ifdef SYSLOG
-GLOBAL char *ngt_SyslogFacilityName PARAMS((int Facility));
+GLOBAL const char *ngt_SyslogFacilityName PARAMS((int Facility));
 GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
 #endif