]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* demo/dlmain.c (main): cast s->address to the appropriate pointer
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 20 Jan 1999 18:06:47 +0000 (18:06 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Jan 1999 18:06:47 +0000 (18:06 +0000)
  types, otherwise StunOS4's cc refuses to compile it

ChangeLog
demo/dlmain.c

index 845e0c81310e6c0e7e95b62f8357043bbd8773e1..e926cdccc8645f451c460c12b8b60c2ea30f9e6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-01-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * demo/dlmain.c (main): cast s->address to the appropriate pointer
+       types, otherwise StunOS4's cc refuses to compile it
+
        * ltconfig.in (sunos4*, without_gnu_ld, with_gcc, archive_cmds):
        add -fPIC, because libgcc is multilibbed, and we want the PIC
        version of it for shared libraries, otherwise ld complains
index 8d901cbd2ac205ad27ff797a3e0df1cac0891c21..32c8c6e0f1ed1b02d70a905f9a9b1e50f008bdf0 100644 (file)
@@ -76,11 +76,11 @@ main (argc, argv)
         const char *name = s->name;
         printf ("found symbol: %s\n", name);
         if (!strcmp ("hello", name))
-         phello = s->address;
+         phello = (int(*)())s->address;
         else if (!strcmp ("foo", name))
-         pfoo = s->address;
+         pfoo = (int(*)())s->address;
         else if (!strcmp ("nothing", name))
-         pnothing = s->address;
+         pnothing = (int*)s->address;
       } else 
         printf ("found file: %s\n", s->name);
       s ++;