aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncmod6.c
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2021-02-13 18:49:56 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2021-02-13 18:49:56 -0300
commitcde88e739832faa9ef82fdadb01efdf9d66a9a00 (patch)
tree394fe452e6f70936bc5be2a6a0e8365392a8c0db /elf/ifuncmod6.c
parent148200bda390e59c9c33193e2f6d73abcef417e7 (diff)
parente9db77683e10c589529f452710868c3bde2c6d3f (diff)
downloadglibc-ibm/2.28/master.zip
glibc-ibm/2.28/master.tar.gz
glibc-ibm/2.28/master.tar.bz2
Merge branch release/2.28/master into ibm/2.28/masteribm/2.28/master
Diffstat (limited to 'elf/ifuncmod6.c')
-rw-r--r--elf/ifuncmod6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/ifuncmod6.c b/elf/ifuncmod6.c
index 2e16c1d..2f6d071 100644
--- a/elf/ifuncmod6.c
+++ b/elf/ifuncmod6.c
@@ -4,7 +4,7 @@ extern int foo (void);
typedef int (*foo_p) (void);
-foo_p foo_ptr = foo;
+extern foo_p foo_ptr;
foo_p
get_foo_p (void)
@@ -12,8 +12,8 @@ get_foo_p (void)
return foo_ptr;
}
-foo_p
-get_foo (void)
+int
+call_foo (void)
{
- return foo;
+ return foo ();
}