From 28dd48a76aa5355b166c372ee374256bb98ad40e Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 12 Dec 2005 08:28:33 +1000 Subject: [PATCH] Use char instead of unsigned char in xdgmime files. Avoids a few warnings. darcs-hash:20051211222833-ac50b-3fd68bb7000660172027c8991c68448ddb36e27d.gz --- xdgmimeint.c | 2 +- xdgmimemagic.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xdgmimeint.c b/xdgmimeint.c index c24f8194e..4a0ac4cc3 100644 --- a/xdgmimeint.c +++ b/xdgmimeint.c @@ -41,7 +41,7 @@ #define TRUE (!FALSE) #endif -static const unsigned char _xdg_utf8_skip_data[256] = { +static const char _xdg_utf8_skip_data[256] = { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, diff --git a/xdgmimemagic.c b/xdgmimemagic.c index b98c1e732..3cc519376 100644 --- a/xdgmimemagic.c +++ b/xdgmimemagic.c @@ -156,11 +156,11 @@ _xdg_mime_magic_match_free (XdgMimeMagicMatch *mime_magic_match) /* Reads in a hunk of data until a newline character or a '\000' is hit. The * returned string is null terminated, and doesn't include the newline. */ -static unsigned char * +static char * _xdg_mime_magic_read_to_newline (FILE *magic_file, int *end_of_file) { - unsigned char *retval; + char *retval; int c; int len, pos; @@ -179,7 +179,7 @@ _xdg_mime_magic_read_to_newline (FILE *magic_file, } if (c == '\n' || c == '\000') break; - retval[pos++] = (unsigned char) c; + retval[pos++] = (char) c; if (pos % 128 == 127) { len = len + 128;