aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-03-02 12:56:50 +0000
committerYao Qi <yao@codesourcery.com>2012-03-02 12:56:50 +0000
commita95babbf381faac591ef74244aba6b399448c653 (patch)
tree0585544f468251638a29bf0c3fa24eba2b6515b7 /gdb/charset.c
parentd603d4b3dad936893df823ac1906b175298d7d6a (diff)
downloadgdb-a95babbf381faac591ef74244aba6b399448c653.zip
gdb-a95babbf381faac591ef74244aba6b399448c653.tar.gz
gdb-a95babbf381faac591ef74244aba6b399448c653.tar.bz2
gdb/
Fix -Wmissing-prototypes build. * charset.c (phony_iconv_open): Make static. (phony_iconv_close, phony_iconv): Likewise. * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype. * i386-windows-nat.c (_initialize_i386_windows_nat): New prototype. * mingw-hdep.c (_initialize_mingw_hdep): New prototype. * ser-mingw.c (create_select_thread): Make static. * windows-termcap.c (tgetent): New prototype. (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/charset.c b/gdb/charset.c
index 16dab6b..4a209a5 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -108,7 +108,7 @@
#define EILSEQ ENOENT
#endif
-iconv_t
+static iconv_t
phony_iconv_open (const char *to, const char *from)
{
/* We allow conversions from UTF-32BE, wchar_t, and the host charset.
@@ -124,13 +124,13 @@ phony_iconv_open (const char *to, const char *from)
return !strcmp (from, "UTF-32BE");
}
-int
+static int
phony_iconv_close (iconv_t arg)
{
return 0;
}
-size_t
+static size_t
phony_iconv (iconv_t utf_flag, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{