This commit is contained in:
Kris Kennaway 2000-11-26 10:21:54 +00:00
parent 18fdc5893a
commit a16f31237a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69200
2 changed files with 6 additions and 5 deletions

View File

@ -94,13 +94,13 @@ static int numlevels = sizeof(levelnames) / sizeof(levelnames[0]);
*/
#ifdef __STDC__
void
report(int priority, char *fmt,...)
report(int priority, const char *fmt,...)
#else
/*VARARGS2*/
void
report(priority, fmt, va_alist)
int priority;
char *fmt;
const char *fmt;
va_dcl
#endif
{
@ -136,7 +136,7 @@ report(priority, fmt, va_alist)
/*
* Return pointer to static string which gives full filesystem error message.
*/
char *
const char *
get_errmsg()
{
return strerror(errno);

View File

@ -1,4 +1,5 @@
/* report.h */
/* $FreeBSD$ */
#ifdef __STDC__
#define P(args) args
@ -7,7 +8,7 @@
#endif
extern void report_init P((int nolog));
extern void report P((int, char *, ...));
extern char *get_errmsg P((void));
extern void report P((int, const char *, ...));
extern const char *get_errmsg P((void));
#undef P