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:
parent
c51cc88eb0
commit
3a826b774a
@ -186,7 +186,7 @@ CODE facilitynames[] = {
|
||||
#endif
|
||||
|
||||
|
||||
GLOBAL char
|
||||
GLOBAL const char
|
||||
*ngt_SyslogFacilityName(int Facility)
|
||||
{
|
||||
int i = 0;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user