mirror of
https://github.com/osmarks/ngircd.git
synced 2025-08-04 04:43:58 +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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
GLOBAL char
|
GLOBAL const char
|
||||||
*ngt_SyslogFacilityName(int Facility)
|
*ngt_SyslogFacilityName(int Facility)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -30,7 +30,7 @@ GLOBAL char *ngt_UpperStr PARAMS((char *String ));
|
|||||||
GLOBAL char *ngt_LowerStr PARAMS((char *String ));
|
GLOBAL char *ngt_LowerStr PARAMS((char *String ));
|
||||||
|
|
||||||
#ifdef SYSLOG
|
#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));
|
GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user