Constify
This commit is contained in:
parent
e54ec272e3
commit
35572f18e9
@ -94,13 +94,13 @@ static int numlevels = sizeof(levelnames) / sizeof(levelnames[0]);
|
|||||||
*/
|
*/
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
void
|
void
|
||||||
report(int priority, char *fmt,...)
|
report(int priority, const char *fmt,...)
|
||||||
#else
|
#else
|
||||||
/*VARARGS2*/
|
/*VARARGS2*/
|
||||||
void
|
void
|
||||||
report(priority, fmt, va_alist)
|
report(priority, fmt, va_alist)
|
||||||
int priority;
|
int priority;
|
||||||
char *fmt;
|
const char *fmt;
|
||||||
va_dcl
|
va_dcl
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -136,7 +136,7 @@ report(priority, fmt, va_alist)
|
|||||||
/*
|
/*
|
||||||
* Return pointer to static string which gives full filesystem error message.
|
* Return pointer to static string which gives full filesystem error message.
|
||||||
*/
|
*/
|
||||||
char *
|
const char *
|
||||||
get_errmsg()
|
get_errmsg()
|
||||||
{
|
{
|
||||||
return strerror(errno);
|
return strerror(errno);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* report.h */
|
/* report.h */
|
||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#define P(args) args
|
#define P(args) args
|
||||||
@ -7,7 +8,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void report_init P((int nolog));
|
extern void report_init P((int nolog));
|
||||||
extern void report P((int, char *, ...));
|
extern void report P((int, const char *, ...));
|
||||||
extern char *get_errmsg P((void));
|
extern const char *get_errmsg P((void));
|
||||||
|
|
||||||
#undef P
|
#undef P
|
||||||
|
Loading…
Reference in New Issue
Block a user