Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu Always dereference argc as an int.
details: https://anonhg.NetBSD.org/src/rev/4a9ce0783d45
branches: trunk
changeset: 495310:4a9ce0783d45
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed Jul 26 02:11:44 2000 +0000
description:
Always dereference argc as an int.
diffstat:
lib/csu/alpha/crt0.c | 8 ++++----
lib/csu/sparc64/crt0.c | 11 ++++-------
2 files changed, 8 insertions(+), 11 deletions(-)
diffs (65 lines):
diff -r 9f7e3df09c74 -r 4a9ce0783d45 lib/csu/alpha/crt0.c
--- a/lib/csu/alpha/crt0.c Wed Jul 26 02:07:34 2000 +0000
+++ b/lib/csu/alpha/crt0.c Wed Jul 26 02:11:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.21 2000/06/14 17:24:54 cgd Exp $ */
+/* $NetBSD: crt0.c,v 1.22 2000/07/26 02:11:44 mycroft Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -46,10 +46,10 @@
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
{
- long argc;
+ int argc;
char **argv, *namep;
- argc = *(long *)sp;
+ argc = *(int *)sp;
argv = sp + 1;
environ = sp + 2 + argc; /* 2: argc + NULL ending argv */
@@ -84,7 +84,7 @@
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.21 2000/06/14 17:24:54 cgd Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.22 2000/07/26 02:11:44 mycroft Exp $");
#endif /* LIBC_SCCS and not lint */
#include "common.c"
diff -r 9f7e3df09c74 -r 4a9ce0783d45 lib/csu/sparc64/crt0.c
--- a/lib/csu/sparc64/crt0.c Wed Jul 26 02:07:34 2000 +0000
+++ b/lib/csu/sparc64/crt0.c Wed Jul 26 02:11:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.14 2000/07/25 21:42:55 mycroft Exp $ */
+/* $NetBSD: crt0.c,v 1.15 2000/07/26 02:11:46 mycroft Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -76,13 +76,10 @@
const Obj_Entry *obj; /* from shared loader */
struct ps_strings *ps_strings;
{
- long argc;
+ int argc;
char **argv, *namep;
- argc = *(long *)sp;
- /* XXXXX HACK */
- if (argc >= 0x100000000)
- argc >>= 32;
+ argc = *(int *)sp;
argv = sp + 1;
environ = sp + 2 + argc; /* 2: argc + NULL ending argv */
@@ -117,7 +114,7 @@
* NOTE: Leave the RCS ID _after_ _start(), in case it gets placed in .text.
*/
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.14 2000/07/25 21:42:55 mycroft Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.15 2000/07/26 02:11:46 mycroft Exp $");
#endif /* LIBC_SCCS and not lint */
/* XXX XXX XXX THIS SHOULD GO AWAY XXX XXX XXX
Home |
Main Index |
Thread Index |
Old Index