diff options
| author | Alexander Barton <alex@barton.de> | 2010-10-05 20:16:35 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2010-10-05 20:16:35 +0200 |
| commit | 3a826b774a10a069d2f18b1a07842acf8da8fc49 (patch) | |
| tree | fcf6ccf2336510d5eae1a5c17f141132044fec2a /src/tool/tool.h | |
| parent | c51cc88eb08eb3aa3fd626347bd9c87f2ae7f9c1 (diff) | |
| download | ngircd-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/tool.h')
| -rw-r--r-- | src/tool/tool.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |