Compare commits

...

2 Commits

Author SHA1 Message Date
tth
681dfd69dc oups again 2019-09-11 19:22:19 +02:00
tth
14dd4bd273 oups again 2019-09-11 19:17:03 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ if (foo) {
outptr = &fimg; /* safe default value */ outptr = &fimg; /* safe default value */
if (to_gray) { if (to_gray) {
puts("converting to gray..."); if (verbosity) puts("converting to gray...");
foo = fimg_create(&gris, fimg.width, fimg.height, FIMG_TYPE_GRAY); foo = fimg_create(&gris, fimg.width, fimg.height, FIMG_TYPE_GRAY);
if (foo) { if (foo) {
fprintf(stderr, "err create gray %d\n", foo); fprintf(stderr, "err create gray %d\n", foo);
@ -91,7 +91,7 @@ if (argc == 1) {
while ((opt = getopt(argc, argv, "ghv")) != -1) { while ((opt = getopt(argc, argv, "ghv")) != -1) {
switch(opt) { switch(opt) {
case 'g': to_gray = 1; case 'g': to_gray = 1; break;
case 'v': verbosity++; break; case 'v': verbosity++; break;
case 'h': help(1); exit(1); case 'h': help(1); exit(1);
} }

View File

@ -19,7 +19,7 @@ int foo;
if (3 != argc) { if (3 != argc) {
fimg_print_version(1); fimg_print_version(1);
fprintf(stderr, "usage:\n\t%s foo.png bar.png\n", argv[0]); fprintf(stderr, "usage:\n\t%s foo.png bar.fimg\n", argv[0]);
exit(1); exit(1);
} }