diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2007-09-07 02:44:57 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2007-09-07 02:44:57 +0000 |
commit | f5bb5e0e7a5765ce143664ae0e28e7c4bfd3b3e0 (patch) | |
tree | 4fe201220d43030fe7a4e8bc2ca3d702ba374bd6 /libltdl/slist.c | |
parent | 22204a9ff8efd4f6f55a736a8f2bbcf05829d1e0 (diff) | |
download | libtool-f5bb5e0e7a5765ce143664ae0e28e7c4bfd3b3e0.tar.gz |
* libltdl/lt_dlloader.c (loader_callback, lt_dlloader_get): Use
NULL, not 0, for the benefit of too picky compilers like PGI.
* slist.c (slist_tail): Likewise. Include stddef.h, for NULL.
Report by Jeff Squyres.
Diffstat (limited to 'libltdl/slist.c')
-rw-r--r-- | libltdl/slist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libltdl/slist.c b/libltdl/slist.c index c722801d..deeb8e83 100644 --- a/libltdl/slist.c +++ b/libltdl/slist.c @@ -31,6 +31,7 @@ or obtained by writing to the Free Software Foundation, Inc., #include <assert.h> #include "slist.h" +#include <stddef.h> static SList * slist_sort_merge (SList *left, SList *right, SListCompare *compare, void *userdata); @@ -177,7 +178,7 @@ slist_cons (SList *item, SList *slist) SList * slist_tail (SList *slist) { - return slist ? slist->next : 0; + return slist ? slist->next : NULL; } /* Return a list starting at the Nth item of SLIST. If SLIST is less |