summaryrefslogtreecommitdiff
path: root/usr.sbin/eeprom/optree.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/eeprom/optree.c')
-rw-r--r--usr.sbin/eeprom/optree.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/eeprom/optree.c b/usr.sbin/eeprom/optree.c
index 5e1419447e6..67ea883e53a 100644
--- a/usr.sbin/eeprom/optree.c
+++ b/usr.sbin/eeprom/optree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: optree.c,v 1.2 2007/09/09 14:19:28 fgsch Exp $ */
+/* $OpenBSD: optree.c,v 1.3 2007/11/12 20:54:54 kettenis Exp $ */
/*
* Copyright (c) 2007 Federico G. Schwindt <fgsch@openbsd.org>
@@ -26,7 +26,6 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <machine/openpromio.h>
#include <sys/ioctl.h>
#include <err.h>
#include <fcntl.h>
@@ -34,6 +33,10 @@
#include <string.h>
#include <unistd.h>
+#include <machine/openpromio.h>
+
+#include "defs.h"
+
extern char *path_openprom;
static void
@@ -93,8 +96,8 @@ op_print(struct opiocdesc *opio, int depth)
void
op_nodes(int fd, int node, int depth)
{
- char op_buf[BUFSIZ * 4];
- char op_name[BUFSIZ];
+ char op_buf[BUFSIZE * 8];
+ char op_name[BUFSIZE];
struct opiocdesc opio;
opio.op_nodeid = node;