remove useless parameter

This commit is contained in:
tth 2022-04-12 14:15:08 +02:00
parent 2e6bff3f67
commit 5064126da8
1 changed files with 3 additions and 3 deletions

View File

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