Skip to content

Commit

Permalink
Use char instead of unsigned char in xdgmime files. Avoids a few warn…
Browse files Browse the repository at this point in the history
…ings.

darcs-hash:20051211222833-ac50b-3fd68bb7000660172027c8991c68448ddb36e27d.gz
  • Loading branch information
liljencrantz committed Dec 11, 2005
1 parent b1c61bc commit 28dd48a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xdgmimeint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions xdgmimemagic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 28dd48a

Please sign in to comment.