summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-09-04 05:48:09 +0000
committerimp <imp@FreeBSD.org>2000-09-04 05:48:09 +0000
commit833218761701cca9c10897cc4fbb60fbc76ee634 (patch)
tree05e9c00f5e9170ef75016447c6ed5fc3c9ceadf8 /libexec/bootpd
parenta0b36420564019b8bb3f453d5027f1eceab5a897 (diff)
downloadFreeBSD-src-833218761701cca9c10897cc4fbb60fbc76ee634.zip
FreeBSD-src-833218761701cca9c10897cc4fbb60fbc76ee634.tar.gz
strerror is declared in <string.h>
errno is declared in <errno.h>
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/bootpd/report.c b/libexec/bootpd/report.c
index e754a30..8edb97f 100644
--- a/libexec/bootpd/report.c
+++ b/libexec/bootpd/report.c
@@ -1,3 +1,5 @@
+/* $FreeBSD$ */
+
/*
* report() - calls syslog
*/
@@ -10,6 +12,8 @@
#include <stdio.h>
#include <syslog.h>
+#include <string.h>
+#include <errno.h>
#include "report.h"
@@ -135,9 +139,6 @@ report(priority, fmt, va_alist)
char *
get_errmsg()
{
- extern int errno;
- extern char *strerror();
-
return strerror(errno);
}
OpenPOWER on IntegriCloud