summaryrefslogtreecommitdiff
path: root/iconv-detect.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2018-05-17 15:08:22 +0200
committerMilan Crha <mcrha@redhat.com>2018-05-17 15:09:25 +0200
commitf6b594d05a17f653f55064b546de8bea087421a6 (patch)
tree2ad373203a9424b4a4db6ae7f84df3265cee2303 /iconv-detect.c
parentb22dc18fb7fde5c7fb2b6f8c66067997ce302ee9 (diff)
downloadevolution-data-server-f6b594d05a17f653f55064b546de8bea087421a6.tar.gz
Address some of the compiler and static analyzers warnings
Diffstat (limited to 'iconv-detect.c')
-rw-r--r--iconv-detect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iconv-detect.c b/iconv-detect.c
index e44ad94e3..8cb467328 100644
--- a/iconv-detect.c
+++ b/iconv-detect.c
@@ -50,8 +50,8 @@ enum {
typedef struct {
- char *charset;
- char *format;
+ const char *charset;
+ const char *format;
int id;
} CharInfo;
@@ -90,8 +90,8 @@ static int num_iso10646_tests = sizeof (iso10646_tests) / sizeof (CharInfo);
static int
test_iconv (void)
{
- char *jp = "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C";
- char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
+ char *jp = (char *) "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C";
+ const char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
char *transbuf = malloc (10), *trans = transbuf;
iconv_t cd;
size_t jp_len = strlen (jp), utf8_len = 10;