X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Fquick_tests.c;h=a3f6463304d3ec866645db8e413ee90fb8dd83ee;hp=f0fb0211d2679093db26842349a35db7ea3cc3af;hb=ce0a5fb9849b6dc0d1347709b28d3a34eefec662;hpb=ddf33fed15c2376bfb602d62dd018c63fce60df8 diff --git a/direct/timothy_tests/quick_tests/quick_tests.c b/direct/timothy_tests/quick_tests/quick_tests.c index f0fb021..a3f6463 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.c +++ b/direct/timothy_tests/quick_tests/quick_tests.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Timothy Manning @@ -151,14 +151,14 @@ void get_error(void) void init_quick_tests(int argc, char *argv[]) { int trace=0; -int new_option; + int new_option; int x=0; do{ new_option=getopt_long(argc,argv,short_options,long_options,NULL); - if (0==strcmp(argv[x],"-h")){ + if (new_option=='h'){ printf("help\n"); printf("-h will print the commands available\n"); - printf("-c will continue after a test failes else the program will exit\n"); + printf("-c will continue after a test fails else the program will exit\n"); printf("-v will print all messages\n"); printf("-q quiet mode only the number of tests passed and failed will be printed\n"); printf("-t [number] set yaffs_trace to number\n");