1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 09:50:29 +00:00

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
This commit is contained in:
Alexander Barton 2010-10-05 20:16:35 +02:00
parent c51cc88eb0
commit 3a826b774a
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ CODE facilitynames[] = {
#endif
GLOBAL char
GLOBAL const char
*ngt_SyslogFacilityName(int Facility)
{
int i = 0;

View File

@ -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