diff --git a/essai.c b/essai.c index c6520bd..b2e6287 100644 --- a/essai.c +++ b/essai.c @@ -22,7 +22,7 @@ fimg_draw_something(dessin); } /* --------------------------------------------------------------------- */ -void help(int k) +void help(void) { puts("Options :"); puts("\t-d WxH\timage size"); @@ -34,14 +34,14 @@ int main(int argc, char *argv[]) { FloatImg fimgA, fimgB; int foo, opt; -int W = 800, H = 600; +int W = 640, H = 480; double tb; while ((opt = getopt(argc, argv, "d:hv")) != -1) { switch(opt) { case 'd': parse_WxH(optarg, &W, &H); break; - case 'h': help(0); break; + case 'h': help(); break; case 'v': verbosity++; break; } }