Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sunos Cast 32bit sunos_nfs_arg member to (char *)...
details: https://anonhg.NetBSD.org/src/rev/92eb29ccb8fb
branches: trunk
changeset: 503739:92eb29ccb8fb
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Feb 12 19:49:20 2001 +0000
description:
Cast 32bit sunos_nfs_arg member to (char *)(long) to avoid warning
after sunos.h change (cast is safe; a SunOS binary will pas a 32 bit
pointer).
diffstat:
sys/compat/sunos/sunos_misc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 049b17c180f1 -r 92eb29ccb8fb sys/compat/sunos/sunos_misc.c
--- a/sys/compat/sunos/sunos_misc.c Mon Feb 12 19:17:05 2001 +0000
+++ b/sys/compat/sunos/sunos_misc.c Mon Feb 12 19:49:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp $ */
+/* $NetBSD: sunos_misc.c,v 1.108 2001/02/12 19:49:20 fvdl Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -378,7 +378,7 @@
}
na.timeo = sna.timeo;
na.retrans = sna.retrans;
- na.hostname = sna.hostname;
+ na.hostname = (char *)(u_long)sna.hostname;
error = copyout(&sa, na.addr, sizeof sa);
if (error)
Home |
Main Index |
Thread Index |
Old Index