diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1998-11-21 07:45:20 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 1998-11-21 07:45:20 +0000 |
commit | 405661a0fae1f19aa0063e7eca8217932b88da62 (patch) | |
tree | 3a094fb1ed16c1f191793c98aa94fd0f9e668ed9 /libltdl/ltdl.c | |
parent | 02424f059f32078cffe9cf6097e2d592e3264688 (diff) | |
download | libtool-405661a0fae1f19aa0063e7eca8217932b88da62.tar.gz |
* libltdl/ltdl.c: replace NULL with 0, so that we don't depend on
header files defining it.
Diffstat (limited to 'libltdl/ltdl.c')
-rw-r--r-- | libltdl/ltdl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 7afdf93a..3d7841bd 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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 |