summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-10-26 02:58:44 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-10-26 02:58:44 +0000
commitf2d75eae426444201b2ddcb52c80b5ff156b6eca (patch)
tree7536fe20671e628f5c483c17ff283c7f84383fff
parentac9dd2100b3bcdc4072f2b52e1eb553ee9750bad (diff)
Sort #includes; pull in <time.h> for ctime()
-rw-r--r--usr.sbin/amd/amd/xutil.c14
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;