* elf/rtld.c (dl_main): Add cast in last change.
[glibc.git] / elf / testobj1.c
blob5ab20efd62976ef68f571238f7e35d51366bafa8
1 #include <dlfcn.h>
2 #include <stdlib.h>
4 #include "testobj.h"
6 int
7 obj1func1 (int a __attribute__ ((unused)))
9 return 42;
12 int
13 obj1func2 (int a)
15 return foo (a) + 10;
18 int
19 preload (int a)
21 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
22 if (fp != NULL)
23 return fp (a) + 10;
24 return 10;