Compare commits

..

No commits in common. "681dfd69dc336e7820d2c19a9ac9ddb79765a80a" and "090a7719713ebe542d8ed0838b4dc367eec4e0c2" have entirely different histories.

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) {
if (verbosity) puts("converting to gray..."); 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; break; case 'g': to_gray = 1;
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.fimg\n", argv[0]); fprintf(stderr, "usage:\n\t%s foo.png bar.png\n", argv[0]);
exit(1); exit(1);
} }