diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2000-11-26 10:21:54 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2000-11-26 10:21:54 +0000 |
| commit | a16f31237ae8e7c18d79136cad547dd1c77cec38 (patch) | |
| tree | d54c789f28ddd1153270bd718778b4d25bfa896a | |
| parent | 18fdc5893a17859c9404b3c2b4d959f259537ed2 (diff) | |
Notes
| -rw-r--r-- | libexec/bootpd/report.c | 6 | ||||
| -rw-r--r-- | libexec/bootpd/report.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libexec/bootpd/report.c b/libexec/bootpd/report.c index 8edb97f5e4db..191d54580fab 100644 --- a/libexec/bootpd/report.c +++ b/libexec/bootpd/report.c @@ -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); diff --git a/libexec/bootpd/report.h b/libexec/bootpd/report.h index 0bf63d60fbb1..6b96ac61c43d 100644 --- a/libexec/bootpd/report.h +++ b/libexec/bootpd/report.h @@ -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 |
