summaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-09 18:03:38 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-09 18:03:38 +0000
commitc27bdee1cd22bf097ccf987f2b13d6e70c2759b8 (patch)
treec9a6af35d74cef39842b43795f1e6c486b2a01a7 /gdb/charset.c
parente252b8b49b256e2dc74b5ba607b6f64052ff53fd (diff)
downloadgdb-c27bdee1cd22bf097ccf987f2b13d6e70c2759b8.tar.gz
2003-01-09 Andrew Cagney <ac131313@redhat.com>
* infrun.c (follow_fork): Use ISO C definition. * expprint.c (print_subexp): Use xfree instead of free. * charset.c: Include "gdb_string.h" instead of <string.h>. (register_iconv_charsets): Use ISO C definition. (host_charset, target_charset): Ditto. * Makefile.in (charset.o): Update dependencies. (mi-cmd-env.o): Update dependencies. Index: mi/ChangeLog 2003-01-09 Andrew Cagney <ac131313@redhat.com> * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>. Move all includes to after "defs.h".
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/charset.c b/gdb/charset.c
index 00e10659a54..d24eb70dd81 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -24,7 +24,7 @@
#include "gdb_assert.h"
#include <stddef.h>
-#include <string.h>
+#include "gdb_string.h"
#include <ctype.h>
#ifdef HAVE_ICONV
@@ -442,7 +442,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char)
static void
-register_iconv_charsets ()
+register_iconv_charsets (void)
{
/* Here we should check whether various character sets were
recognized by the local iconv implementation.
@@ -479,7 +479,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char)
}
static void
-register_iconv_charsets ()
+register_iconv_charsets (void)
{
}
@@ -1016,7 +1016,7 @@ set_host_charset (const char *charset)
const char *
-host_charset ()
+host_charset (void)
{
return current_host_charset->name;
}
@@ -1032,7 +1032,7 @@ set_target_charset (const char *charset)
const char *
-target_charset ()
+target_charset (void)
{
return current_target_charset->name;
}