summaryrefslogtreecommitdiff
path: root/test/lex.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 20:32:25 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 20:32:25 +0000
commit453062750c3752d77bbf772d85144003063c1212 (patch)
treecf56e29d64c6871397e4ccc749c0da0b4f27f4f4 /test/lex.c
parent7737a59d775aeb6dc14868fef6b2c95ed948d17f (diff)
downloadlibcss-453062750c3752d77bbf772d85144003063c1212.tar.gz
libcss-453062750c3752d77bbf772d85144003063c1212.tar.bz2
Remove Aliases file nonsense
svn path=/trunk/libcss/; revision=10983
Diffstat (limited to 'test/lex.c')
-rw-r--r--test/lex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lex.c b/test/lex.c
index c48feeb..f8b369b 100644
--- a/test/lex.c
+++ b/test/lex.c
@@ -130,8 +130,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;
}
@@ -144,9 +144,9 @@ int main(int argc, char **argv)
assert(css_lexer_create(stream, myrealloc, NULL, &lexer) ==
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;
}