summaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2012-03-02 12:56:48 +0000
committerqiyao <qiyao>2012-03-02 12:56:48 +0000
commita12e18f74ada8c042bd5521696481451e6f77747 (patch)
treebf79939602f2d12403aee671481d85ac615a1491 /gdb/charset.c
parent1bff93fc562a4dd58bb9cad0cd6435665bf5b395 (diff)
downloadgdb-a12e18f74ada8c042bd5521696481451e6f77747.tar.gz
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 16dab6b9fc0..4a209a553cb 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)
{