summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcidump
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-08-27 04:38:48 +0000
committerguenther <guenther@openbsd.org>2016-08-27 04:38:48 +0000
commit71073a546a5762c9407f05e27a82e7b8beca0655 (patch)
tree1564c46d0cc5fc5e4f3be42a5415ec5df1fcf17e /usr.sbin/pcidump
parentPull in <stdio.h> for NULL (diff)
downloadwireguard-openbsd-71073a546a5762c9407f05e27a82e7b8beca0655.tar.xz
wireguard-openbsd-71073a546a5762c9407f05e27a82e7b8beca0655.zip
Move up the <stdio.h> include so <dev/pci/*.h> have NULL
ok deraadt@
Diffstat (limited to 'usr.sbin/pcidump')
-rw-r--r--usr.sbin/pcidump/pcidump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c
index 1673815dce9..08d94506421 100644
--- a/usr.sbin/pcidump/pcidump.c
+++ b/usr.sbin/pcidump/pcidump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcidump.c,v 1.39 2015/12/01 19:10:09 kettenis Exp $ */
+/* $OpenBSD: pcidump.c,v 1.40 2016/08/27 04:38:48 guenther Exp $ */
/*
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
@@ -20,6 +20,8 @@
#include <sys/ioctl.h>
#include <sys/pciio.h>
+#include <stdio.h> /* need NULL for <dev/pci/*.h> */
+
#include <dev/pci/pcireg.h>
#include <dev/pci/pcidevs.h>
#include <dev/pci/pcidevs_data.h>
@@ -28,7 +30,6 @@
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>