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/parser.c | |
parent | ff31fd617c976832422206a9d36ecd395f45cbaf (diff) | |
download | libhubbub-d509919a3bc507f3898e2166978462badbaab599.tar.gz libhubbub-d509919a3bc507f3898e2166978462badbaab599.tar.bz2 |
Correct various warnings in the test suite
Diffstat (limited to 'test/parser.c')
-rw-r--r-- | test/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parser.c b/test/parser.c index 0670ebf..93bdad2 100644 --- a/test/parser.c +++ b/test/parser.c @@ -24,7 +24,7 @@ static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE) hubbub_parser *parser; hubbub_parser_optparams params; FILE *fp; - size_t len, origlen; + size_t len; uint8_t *buf = malloc(CHUNK_SIZE); const char *charset; hubbub_charset_source cssource; @@ -46,7 +46,7 @@ static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE) } fseek(fp, 0, SEEK_END); - origlen = len = ftell(fp); + len = ftell(fp); fseek(fp, 0, SEEK_SET); while (len > 0) { |