]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c: replace NULL with 0, so that we don't depend on
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 21 Nov 1998 07:45:20 +0000 (07:45 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 21 Nov 1998 07:45:20 +0000 (07:45 +0000)
header files defining it.

ChangeLog
libltdl/ltdl.c

index cd3e08c34f57291550043b85638d3330ee0eecc0..b402c54beb073c8c2567be8303697975dda3aa39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1998-11-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libltdl/ltdl.c: replace NULL with 0, so that we don't depend on
+       header files defining it.
+
        * ltconfig.in (archive_cmds, osf3, osf4, solaris, sunos4): create
        libraries with gcc -shared if using gcc without GNU ld.
 
index 7afdf93aa3dbb88bec1a09d3bd4f3f20da5acd60..3d7841bd9014c87ecc8b0ae99101741e09005209 100644 (file)
@@ -51,7 +51,7 @@ sys_dlopen (char *filename)
                s++;
        }
        if (!s->name)
-               return NULL;
+               return 0;
        return (void*)s;
 }
 
@@ -66,7 +66,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol)
        struct dld_symlist *s = (struct dld_symlist*)handle;
 
        if (!s)
-               return NULL;
+               return 0;
        s++;
        while (s->address) {
                if (!strncmp(s->name, "ltexp_", 6)) {
@@ -76,7 +76,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol)
                }
                s++;
        }
-       return NULL;
+       return 0;
 }
 
 #else
@@ -168,7 +168,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol)
        for (i = 0; i < status; i++)
                if (strcmp(symbol, sym[i].name) == 0)
                        return sym[i].value;
-       return NULL;
+       return 0;
 }
 
 #else
@@ -185,7 +185,7 @@ static lt_dlhandle
 sys_dlopen (char *filename)
 {
        if (dld_link (filename))
-               return NULL;
+               return 0;
        return filename;
 }
 
@@ -243,7 +243,7 @@ sys_dlinit (void)
 static lt_dlhandle
 sys_dlopen (char *filename)
 {
-       return NULL;
+       return 0;
 }
 
 static void
@@ -254,7 +254,7 @@ sys_dlclose (lt_dlhandle handle)
 static void *
 sys_dlsym (lt_dlhandle handle, char *symbol)
 {
-       return NULL;
+       return 0;
 }
 
 #endif