Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib cast from 32-bit integer to void * t...
details: https://anonhg.NetBSD.org/src/rev/6bbc21fcb1a4
branches: trunk
changeset: 791592:6bbc21fcb1a4
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Nov 24 17:16:28 2013 +0000
description:
cast from 32-bit integer to void * though uintptr_t to avoid warnings
when compiling for x86_64.
diffstat:
sys/arch/i386/stand/lib/exec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9309713e4e26 -r 6bbc21fcb1a4 sys/arch/i386/stand/lib/exec.c
--- a/sys/arch/i386/stand/lib/exec.c Sun Nov 24 15:16:49 2013 +0000
+++ b/sys/arch/i386/stand/lib/exec.c Sun Nov 24 17:16:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.51 2013/08/30 16:42:17 jmcneill Exp $ */
+/* $NetBSD: exec.c,v 1.52 2013/11/24 17:16:29 jakllsch Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -578,7 +578,7 @@
if (fd == -1)
continue;
image_end = (image_end + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
- len = pread(fd, (void *)image_end, SSIZE_MAX);
+ len = pread(fd, (void *)(uintptr_t)image_end, SSIZE_MAX);
if (len < bm->bm_len) {
if ((howto & AB_SILENT) != 0)
printf("Loading %s ", bm->bm_path);
Home |
Main Index |
Thread Index |
Old Index