mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
strerror is declared in <string.h>
errno is declared in <errno.h>
This commit is contained in:
parent
53410a4824
commit
7c62d872a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65426
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue