aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-12 08:28:33 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-12 08:28:33 +1000
commit28dd48a76aa5355b166c372ee374256bb98ad40e (patch)
tree9a78de4a251827964fb7b5f65f942a78f62e4181
parentb1c61bcf1f737919f4c1813bee1e8cd2e6acd337 (diff)
Use char instead of unsigned char in xdgmime files. Avoids a few warnings.
darcs-hash:20051211222833-ac50b-3fd68bb7000660172027c8991c68448ddb36e27d.gz
-rw-r--r--xdgmimeint.c2
-rw-r--r--xdgmimemagic.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/xdgmimeint.c b/xdgmimeint.c
index c24f8194..4a0ac4cc 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 b98c1e73..3cc51937 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;