Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so Don't use NULL for integers.



details:   https://anonhg.NetBSD.org/src/rev/8a95a0a32aa1
branches:  trunk
changeset: 553737:8a95a0a32aa1
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 01:19:10 2003 +0000

description:
Don't use NULL for integers.

diffstat:

 libexec/ld.elf_so/symbol.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 03a47b8dd099 -r 8a95a0a32aa1 libexec/ld.elf_so/symbol.c
--- a/libexec/ld.elf_so/symbol.c        Tue Oct 21 01:12:42 2003 +0000
+++ b/libexec/ld.elf_so/symbol.c        Tue Oct 21 01:19:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: symbol.c,v 1.33 2003/08/12 09:18:50 skrll Exp $         */
+/*     $NetBSD: symbol.c,v 1.34 2003/10/21 01:19:10 fvdl Exp $  */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -62,14 +62,14 @@
                (Elf_Addr)dlsym,
                (Elf_Addr)dlerror,
                (Elf_Addr)dladdr,
-               NULL
+               0
        };
        int i;
 
        Elf_Addr value;
        value = (Elf_Addr)(_rtld_objself.relocbase + def->st_value);
 
-       for (i = 0; _rtld_exports[i] != NULL; i++) {
+       for (i = 0; _rtld_exports[i] != 0; i++) {
                if (value == _rtld_exports[i])
                        return true;
        }



Home | Main Index | Thread Index | Old Index