Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/arm_elf Quiet GCC warnings.



details:   https://anonhg.NetBSD.org/src/rev/9db8a632c7e7
branches:  trunk
changeset: 517226:9db8a632c7e7
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Thu Nov 08 22:23:59 2001 +0000

description:
Quiet GCC warnings.

diffstat:

 lib/csu/arm_elf/crt0.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 5677828ccb4d -r 9db8a632c7e7 lib/csu/arm_elf/crt0.c
--- a/lib/csu/arm_elf/crt0.c    Thu Nov 08 22:18:49 2001 +0000
+++ b/lib/csu/arm_elf/crt0.c    Thu Nov 08 22:23:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crt0.c,v 1.4 2001/08/17 00:14:38 bjh21 Exp $   */
+/*     $NetBSD: crt0.c,v 1.5 2001/11/08 22:23:59 bjh21 Exp $   */
 
 /*
  * Copyright (C) 1997 Mark Brinicombe
@@ -42,7 +42,7 @@
 
 extern void            _start(void);
        void            ___start(int, char *[], char *[], struct ps_strings *,
-                               const Obj_Entry *, void (*)());
+                               const Obj_Entry *, void (*)(void));
 
 __asm("
        .text
@@ -70,7 +70,7 @@
 ");
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.4 2001/08/17 00:14:38 bjh21 Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.5 2001/11/08 22:23:59 bjh21 Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 void
@@ -82,11 +82,12 @@
        environ = envp;
        __ps_strings = ps_strings;
 
-       if ((ap = argv[0]))
+       if ((ap = argv[0])) {
                if ((__progname = _strrchr(ap, '/')) == NULL)
                        __progname = ap;
                else
                        ++__progname;
+       }
 
 #ifdef DYNAMIC
        /* ld(1) convention: if DYNAMIC = 0 then statically linked */



Home | Main Index | Thread Index | Old Index