diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-27 04:38:49 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-27 04:38:49 +0000 |
commit | 915ee06e98567db219fe604312abb6062d4a866f (patch) | |
tree | 4347256c8cd3cb800212d3bfaf8f264f91836ce3 /usr.sbin/pcidump | |
parent | 1687048d75dd9149d7c97589c0f727f41d7cd39d (diff) |
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.c | 5 |
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> |