diff options
author | Craig Barnes <craigbarnes85@gmail.com> | 2013-05-04 00:20:16 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2013-05-04 10:44:50 +0100 |
commit | d509919a3bc507f3898e2166978462badbaab599 (patch) | |
tree | 2354e485ffe7881b15a3b5fa30e909e4cc6edf82 /test/tokeniser.c | |
parent | ff31fd617c976832422206a9d36ecd395f45cbaf (diff) | |
download | libhubbub-d509919a3bc507f3898e2166978462badbaab599.tar.gz libhubbub-d509919a3bc507f3898e2166978462badbaab599.tar.bz2 |
Correct various warnings in the test suite
Diffstat (limited to 'test/tokeniser.c')
-rw-r--r-- | test/tokeniser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tokeniser.c b/test/tokeniser.c index e71cdcd..717e34e 100644 --- a/test/tokeniser.c +++ b/test/tokeniser.c @@ -26,7 +26,7 @@ int main(int argc, char **argv) hubbub_tokeniser *tok; hubbub_tokeniser_optparams params; FILE *fp; - size_t len, origlen; + size_t len; #define CHUNK_SIZE (4096) uint8_t buf[CHUNK_SIZE]; @@ -53,7 +53,7 @@ int main(int argc, char **argv) } fseek(fp, 0, SEEK_END); - origlen = len = ftell(fp); + len = ftell(fp); fseek(fp, 0, SEEK_SET); while (len > 0) { @@ -63,7 +63,7 @@ int main(int argc, char **argv) break; assert(parserutils_inputstream_append(stream, - buf, bytes_read) == HUBBUB_OK); + buf, bytes_read) == PARSERUTILS_OK); len -= bytes_read; |