summaryrefslogtreecommitdiff
path: root/sys/stand/boot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-12-02 01:38:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-12-02 01:38:07 +0000
commitf0b401507b106591af69798c90f9ff42d4620201 (patch)
treef13228bcaa5e94bc67e751234cc9785d5e6ec0de /sys/stand/boot
parentfca7ee101f7e5c7753141784bdd34c039e7d93f3 (diff)
For 32 bit systems, cast the long long used by strtoll() to unsigned long
and then a void * for calling the hexdump() operator with bluhm
Diffstat (limited to 'sys/stand/boot')
-rw-r--r--sys/stand/boot/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index d9e7ba76e28..7b613ff686c 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.66 2019/11/28 00:17:13 bluhm Exp $ */
+/* $OpenBSD: cmd.c,v 1.67 2019/12/02 01:38:06 deraadt Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -368,7 +368,7 @@ Xhexdump(void)
return 0;
}
}
- hexdump((void *)val[0], val[1]);
+ hexdump((void *)(unsigned long)val[0], val[1]);
return 0;
}