summaryrefslogtreecommitdiff
path: root/test/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser.c')
-rw-r--r--test/parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parser.c b/test/parser.c
index 291587e..41dd41b 100644
--- a/test/parser.c
+++ b/test/parser.c
@@ -39,9 +39,9 @@ static int run_test(int argc, char **argv, unsigned int CHUNK_SIZE)
assert(hubbub_parser_setopt(parser, HUBBUB_PARSER_TOKEN_HANDLER,
&params) == HUBBUB_OK);
- fp = fopen(argv[2], "rb");
+ fp = fopen(argv[1], "rb");
if (fp == NULL) {
- printf("Failed opening %s\n", argv[2]);
+ printf("Failed opening %s\n", argv[1]);
return 1;
}
@@ -81,8 +81,8 @@ int main(int argc, char **argv)
int ret;
int shift;
int offset;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
#define DO_TEST(n) if ((ret = run_test(argc, argv, (n))) != 0) return ret