summaryrefslogtreecommitdiffstats
path: root/lib/libevent/buffer.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2014-10-17 19:16:01 +0000
committerbluhm <bluhm@openbsd.org>2014-10-17 19:16:01 +0000
commitdefc4074ccfc9c1a6ee37be0e276b56046842efa (patch)
tree3fe00d2a6e8afa6e1176df7ccd7ac073e5e1030c /lib/libevent/buffer.c
parentAlso remove trailing spaces from the CPU brand string. (diff)
downloadwireguard-openbsd-defc4074ccfc9c1a6ee37be0e276b56046842efa.tar.xz
wireguard-openbsd-defc4074ccfc9c1a6ee37be0e276b56046842efa.zip
Remove #ifdef HAVE_.*_H, just include the header files.
Do not include sys/param.h. OK nicm@
Diffstat (limited to 'lib/libevent/buffer.c')
-rw-r--r--lib/libevent/buffer.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/libevent/buffer.c b/lib/libevent/buffer.c
index e888f59fcee..d84b9b19e8b 100644
--- a/lib/libevent/buffer.c
+++ b/lib/libevent/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.21 2014/10/16 07:38:06 bluhm Exp $ */
+/* $OpenBSD: buffer.c,v 1.22 2014/10/17 19:16:01 bluhm Exp $ */
/*
* Copyright (c) 2002, 2003 Niels Provos <provos@citi.umich.edu>
@@ -33,30 +33,20 @@
#endif
#include <sys/types.h>
-
-#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-#endif
-
-#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
-#endif
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STDARG_H
#include <stdarg.h>
-#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include "event.h"
#include "evutil.h"
-#include "./log.h"
+#include "log.h"
struct evbuffer *
evbuffer_new(void)