diff options
author | George Bosilca <bosilca@cs.utk.edu> | 2006-09-04 17:27:27 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-09-04 17:27:27 +0000 |
commit | 8a17ccd68d2075b6c6d94f2c2d35c4c9e60a4952 (patch) | |
tree | d911a1abe3dba246bcb4493eca5deefb95b6184b /libltdl/slist.c | |
parent | c6b76b438587dc3c8b89d287c281320358421aad (diff) | |
download | libtool-8a17ccd68d2075b6c6d94f2c2d35c4c9e60a4952.tar.gz |
Make libltdl work when compiled with a C++ compiler.
* libltdl/lt__alloc.c, libltdl/lt_dlloader.c, libltdl/ltdl.c,
libltdl/slist.c, libltdl/libltdl/lt__alloc.h,
libltdl/libltdl/lt_error.h, libltdl/libltdl/slist.h,
libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
libltdl/loaders/dyld.c, libltdl/loaders/load_add_on.c,
libltdl/loaders/loadlibrary.c, libltdl/loaders/preopen.c,
libltdl/loaders/shl_load.c, tests/stresstest.at,
tests/testsuite.at, tests/f77demo/foo.h, tests/fcdemo/foo.h,
tests/mdemo/foo.h, tests/mdemo/foo1.c, tests/mdemo/foo2.c,
tests/mdemo/main.c: Allow sources to be compiled by a C++
compiler: Cast appropriately, add C linkage for `get_vtable'
functions, do not use C++ keyword `delete'.
Diffstat (limited to 'libltdl/slist.c')
-rw-r--r-- | libltdl/slist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libltdl/slist.c b/libltdl/slist.c index 8cd85518..84af3f1d 100644 --- a/libltdl/slist.c +++ b/libltdl/slist.c @@ -48,14 +48,14 @@ static SList * slist_sort_merge (SList *left, SList *right, ... */ SList * -slist_delete (SList *head, void (*delete) (void *item)) +slist_delete (SList *head, void (*delete_fct) (void *item)) { - assert (delete); + assert (delete_fct); while (head) { SList *next = head->next; - (*delete) (head); + (*delete_fct) (head); head = next; } @@ -340,7 +340,7 @@ slist_sort (SList *slist, SListCompare *compare, void *userdata) SList * slist_box (const void *userdata) { - SList *item = malloc (sizeof *item); + SList *item = (SList *) malloc (sizeof *item); if (item) { |