summaryrefslogtreecommitdiff
path: root/test/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse.c')
-rw-r--r--test/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parse.c b/test/parse.c
index 03a9703..efb555e 100644
--- a/test/parse.c
+++ b/test/parse.c
@@ -84,8 +84,8 @@ int main(int argc, char **argv)
css_error error;
int i;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
@@ -98,9 +98,9 @@ int main(int argc, char **argv)
assert(css_parser_setopt(parser, CSS_PARSER_EVENT_HANDLER,
&params) == CSS_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;
}