aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-14 21:55:39 +0000
committerDavid Robillard <d@drobilla.net>2012-01-14 21:55:39 +0000
commite092ff09351eca0f4c2405d594e871f595f080fc (patch)
tree8e81e2f88f44f239778f818059ce2c9198084a60 /src/reader.c
parent62b8156a4be17341a77fc49f7e1fc7c582f4ac5b (diff)
downloadserd-e092ff09351eca0f4c2405d594e871f595f080fc.tar.gz
serd-e092ff09351eca0f4c2405d594e871f595f080fc.tar.bz2
serd-e092ff09351eca0f4c2405d594e871f595f080fc.zip
Lint.
git-svn-id: http://svn.drobilla.net/serd/trunk@283 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c
index b66221ff..34bb1214 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -71,8 +71,8 @@ struct SerdReaderImpl {
unsigned next_id;
int err;
uint8_t* read_buf;
- int32_t read_head; ///< Offset into read_buf
- bool from_file; ///< True iff reading from @ref fd
+ int32_t read_head; ///< Offset into read_buf
+ bool from_file; ///< True iff reading from @ref fd
bool eof;
#ifdef SERD_STACK_CHECK
Ref* alloc_stack; ///< Stack of push offsets
@@ -113,7 +113,7 @@ static inline bool
page(SerdReader* reader)
{
reader->read_head = 0;
- const size_t n_read = fread(reader->read_buf, 1, SERD_PAGE_SIZE, reader->fd);
+ size_t n_read = fread(reader->read_buf, 1, SERD_PAGE_SIZE, reader->fd);
if (n_read == 0) {
reader->read_buf[0] = '\0';
reader->eof = true;
@@ -1101,7 +1101,7 @@ read_object(SerdReader* reader, ReadContext ctx)
case '4': case '5': case '6': case '7': case '8': case '9':
TRY_THROW(ret = read_number(reader, &o, &datatype));
break;
- case '\"':
+ case '\"':
TRY_THROW(ret = read_literal(reader, &o, &datatype, &lang, &flags));
break;
default: