diff options
author | 2014-10-26 02:58:43 +0000 | |
---|---|---|
committer | 2014-10-26 02:58:43 +0000 | |
commit | 91ce9251abb5f2d2b9e135fa97c7e4c4212df715 (patch) | |
tree | 68aebe584c6658332ffc50360160da2af67511e1 | |
parent | When regcomp() fails, use regerror() to get a useful error message (diff) | |
download | wireguard-openbsd-91ce9251abb5f2d2b9e135fa97c7e4c4212df715.tar.xz wireguard-openbsd-91ce9251abb5f2d2b9e135fa97c7e4c4212df715.zip |
Sort #includes; pull in <time.h> for ctime()
-rw-r--r-- | usr.sbin/amd/amd/xutil.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/amd/amd/xutil.c b/usr.sbin/amd/amd/xutil.c index f50113fc0a9..7e02b0116c4 100644 --- a/usr.sbin/amd/amd/xutil.c +++ b/usr.sbin/amd/amd/xutil.c @@ -32,17 +32,18 @@ * SUCH DAMAGE. * * from: @(#)xutil.c 8.1 (Berkeley) 6/6/93 - * $Id: xutil.c,v 1.16 2014/10/26 02:43:50 guenther Exp $ + * $Id: xutil.c,v 1.17 2014/10/26 02:58:43 guenther Exp $ */ -#include "config.h" -#include <syslog.h> -#include <string.h> +#include "am.h" -#include <unistd.h> +#include <sys/stat.h> #include <stdarg.h> #include <stdlib.h> -#include <sys/stat.h> +#include <string.h> +#include <syslog.h> +#include <time.h> +#include <unistd.h> FILE *logfp = stderr; /* Log errors to stderr initially */ int syslogging; @@ -190,7 +191,6 @@ show_time_host_and_name(int lvl) static char *last_ctime = 0; time_t t = clocktime(); char *sev; - extern char *ctime(); #if defined(DEBUG) && defined(PARANOID) extern char **gargv; |