summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-07 18:33:52 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-07 18:33:52 +0200
commit771473a8c4f44d11e8e6521a96f4e92c20984eb3 (patch)
tree8097f366967afdbead5b21b2ff86be254080162f /libio
parentc4ec8cab07615600dcff90efcc3676855fe84b6d (diff)
downloadglibc-771473a8c4f44d11e8e6521a96f4e92c20984eb3.tar.gz
glibc-771473a8c4f44d11e8e6521a96f4e92c20984eb3.tar.xz
glibc-771473a8c4f44d11e8e6521a96f4e92c20984eb3.zip
libio: Add hidden prototype for ungetc
And make ungetc the primary symbol, with _IO_ungetc as an alias.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'libio')
-rw-r--r--libio/ioungetc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/ioungetc.c b/libio/ioungetc.c
index dcf1c4ca9e..e68a4aaca8 100644
--- a/libio/ioungetc.c
+++ b/libio/ioungetc.c
@@ -27,7 +27,7 @@
 #include "libioP.h"
 
 int
-_IO_ungetc (int c, FILE *fp)
+ungetc (int c, FILE *fp)
 {
   int result;
   CHECK_FILE (fp, EOF);
@@ -40,5 +40,5 @@ _IO_ungetc (int c, FILE *fp)
   _IO_release_lock (fp);
   return result;
 }
-
-weak_alias (_IO_ungetc, ungetc)
+libc_hidden_def (ungetc)
+strong_alias (ungetc, _IO_ungetc)