summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2009-02-26 22:25:25 +0000
committerLloyd Hilaiel <lloyd@hilaiel.com>2009-02-26 22:25:25 +0000
commit22af4134f032ccba9b7cf0ef42594a7f3b1970f9 (patch)
tree25d527888f21298ed6d61cb2cbf3fa4c1792dedd
parent1a7a73039abf621af36f73adf4a4ca77c2c94bd9 (diff)
downloadyajl-22af4134f032ccba9b7cf0ef42594a7f3b1970f9.tar.gz
fix error in win32 build, don't delcare variables in the in middle of a function
-rw-r--r--test/yajl_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/yajl_test.c b/test/yajl_test.c
index 5f1dd31..3c2fcf1 100644
--- a/test/yajl_test.c
+++ b/test/yajl_test.c
@@ -142,7 +142,7 @@ main(int argc, char ** argv)
yajl_status stat;
size_t rd;
yajl_parser_config cfg = { 0, 1 };
- int i, j;
+ int i, j, done;
/* check arguments. We expect exactly one! */
for (i=1;i<argc;i++) {
@@ -185,7 +185,7 @@ main(int argc, char ** argv)
/* ok. open file. let's read and parse */
hand = yajl_alloc(&callbacks, &cfg, NULL);
- int done = 0;
+ done = 0;
while (!done) {
rd = fread((void *) fileData, 1, bufSize, stdin);