aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-08 23:42:54 +0000
committerDavid Robillard <d@drobilla.net>2012-08-08 23:42:54 +0000
commitc283edd147ac0785dadf57e2d7a681905b9b229f (patch)
tree1f49739df1f2c1eacc52801fdde999a5115e24b0 /src/reader.c
parent1461865085504ba8cb41d1fb9c8738266c6537f7 (diff)
downloadserd-c283edd147ac0785dadf57e2d7a681905b9b229f.tar.gz
serd-c283edd147ac0785dadf57e2d7a681905b9b229f.tar.bz2
serd-c283edd147ac0785dadf57e2d7a681905b9b229f.zip
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reader.c b/src/reader.c
index ac9d3778..d17b80a5 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -408,16 +408,16 @@ bad_char(SerdReader* reader, Ref dest, const char* fmt, uint8_t c)
push_replacement(reader, dest);
// Skip bytes until the next start byte
- for (uint8_t c = peek_byte(reader); (c & 0x80);) {
- eat_byte_safe(reader, c);
- c = peek_byte(reader);
+ for (uint8_t b = peek_byte(reader); (b & 0x80);) {
+ eat_byte_safe(reader, b);
+ b = peek_byte(reader);
}
return SERD_SUCCESS;
}
static SerdStatus
-read_utf8_character(SerdReader* reader, Ref dest, const uint8_t c)
+read_utf8_character(SerdReader* reader, Ref dest, uint8_t c)
{
unsigned size = 1;
if ((c & 0xE0) == 0xC0) { // Starts with `110'
@@ -917,7 +917,7 @@ except:
}
inline static bool
-is_token_end(const uint8_t c)
+is_token_end(uint8_t c)
{
switch (c) {
case 0x9: case 0xA: case 0xD: case 0x20: case '\0':