Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rpcgen cast ~0 to (u_int) because it is aimed at the...
details: https://anonhg.NetBSD.org/src/rev/07c697419a6e
branches: trunk
changeset: 521793:07c697419a6e
user: christos <christos%NetBSD.org@localhost>
date: Tue Feb 05 22:02:15 2002 +0000
description:
cast ~0 to (u_int) because it is aimed at the size argument of the xdr function.
diffstat:
usr.bin/rpcgen/rpc_parse.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 5882c74d8d12 -r 07c697419a6e usr.bin/rpcgen/rpc_parse.c
--- a/usr.bin/rpcgen/rpc_parse.c Tue Feb 05 22:01:09 2002 +0000
+++ b/usr.bin/rpcgen/rpc_parse.c Tue Feb 05 22:02:15 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_parse.c,v 1.11 2002/01/31 19:36:49 tv Exp $ */
+/* $NetBSD: rpc_parse.c,v 1.12 2002/02/05 22:02:15 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)rpc_parse.c 1.8 89/02/22 (C) 1987 SMI";
#else
-__RCSID("$NetBSD: rpc_parse.c,v 1.11 2002/01/31 19:36:49 tv Exp $");
+__RCSID("$NetBSD: rpc_parse.c,v 1.12 2002/02/05 22:02:15 christos Exp $");
#endif
#endif
@@ -460,8 +460,8 @@
}
dec->rel = REL_ARRAY;
if (peekscan(TOK_RANGLE, &tok)) {
- dec->array_max = "~0"; /* unspecified size, use
- * max */
+ dec->array_max = "(u_int)~0";
+ /* unspecified size, use * max */
} else {
scan_num(&tok);
dec->array_max = tok.str;
@@ -529,7 +529,8 @@
}
dec->rel = REL_ARRAY;
if (peekscan(TOK_RANGLE, &tok)) {
- dec->array_max = "~0"; /* unspecified size, use max */
+ dec->array_max = "(u_int)~0";
+ /* unspecified size, use max */
} else {
scan_num(&tok);
dec->array_max = tok.str;
@@ -541,7 +542,8 @@
* type of argument - make it
* string<> */
dec->rel = REL_ARRAY;
- dec->array_max = "~0"; /* unspecified size, use max */
+ dec->array_max = "(u_int)~0";
+ /* unspecified size, use max */
}
}
}
Home |
Main Index |
Thread Index |
Old Index