libtool
[Top][All Lists]
Advanced

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

ltdl.c and 1.4.1 (type conflicts)


From: libtool
Subject: ltdl.c and 1.4.1 (type conflicts)
Date: Wed, 5 Sep 2001 21:52:10 -0500
User-agent: Mutt/1.2.5i

In libltdl/ltdl.c from 1.4.1 foreach_dirinpath calls:
  if (argzize_path (canonical, &argz, &argz_len) != 0)
    goto cleanup;
when argz_len is defined as an int and further on it has:
  {
    char *dir_name = 0;
    while ((dir_name = argz_next (argz, argz_len, dir_name)))

yet, both argzize_path and argz_next expect argz_len to be size_t.
Should argz_len be modified so it's a size_t?

Harder to fix is:
"ltdl.c", line 3204.58: 1506-280 (E) Function argument assignment
between types "void*" and "int(*)(const char*,void*)" is not allowed.
"ltdl.c", line 3210.58: 1506-280 (E) Function argument assignment
between types "void*" and "int(*)(const char*,void*)" is not allowed.
"ltdl.c", line 3214.62: 1506-280 (E) Function argument assignment
between types "void*" and "int(*)(const char*,void*)" is not allowed.
"ltdl.c", line 3221.62: 1506-280 (E) Function argument assignment
between types "void*" and "int(*)(const char*,void*)" is not allowed.
"ltdl.c", line 3228.62: 1506-280 (E) Function argument assignment
between types "void*" and "int(*)(const char*,void*)" is not allowed.

ltdl.c makes liberal use of pointers.

The above is on AIX 4.3.2 with xlc BTW.

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]