diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-29 02:56:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-29 02:56:45 +0000 |
commit | 92a56f367e6635bebf4e519a49943c15d2981d85 (patch) | |
tree | 8d0cc34ab7791579c5e7979bc09b5ede8b1bc7be /test/dlopen/libtest1.c | |
parent | 55aaeb574609ff7fb7ac93ce4ffe01be0a56f5b7 (diff) |
fixup prototype warnings
Diffstat (limited to 'test/dlopen/libtest1.c')
-rw-r--r-- | test/dlopen/libtest1.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/dlopen/libtest1.c b/test/dlopen/libtest1.c index f0dc9f537..a2f7dcdc0 100644 --- a/test/dlopen/libtest1.c +++ b/test/dlopen/libtest1.c @@ -2,28 +2,31 @@ extern int libtest2_func(const char *s); - -void __attribute__((constructor)) libtest1_ctor(void) +void __attribute__((constructor)) libtest1_ctor(void); +void libtest1_ctor(void) { printf("libtest1: constructor!\n"); } -void __attribute__((destructor)) libtest1_dtor(void) +void __attribute__((destructor)) libtest1_dtor(void); +void libtest1_dtor(void) { printf("libtest1: destructor!\n"); } -void __attribute__((weak)) function1(void) +void __attribute__((weak)) function1(void); +void function1(void) { printf("libtest1: I am weak function1!\n"); } +void function2(void); void function2(void) { printf("libtest1: I am function2!\n"); } - +int dltest(const char *s); int dltest(const char *s) { printf( "libtest1: function1 = %p\n" |