This commit is contained in:
tth 2022-04-12 14:49:00 +02:00
parent 6810783426
commit 455428f444

View File

@ -23,6 +23,7 @@ int verbosity;
#define T_TPAT0 6 #define T_TPAT0 6
#define T_MIRCOL1 7 #define T_MIRCOL1 7
#define T_BLOUP 8 #define T_BLOUP 8
#define T_STRIPES 9
typedef struct { typedef struct {
int code; int code;
char *name; char *name;
@ -38,6 +39,7 @@ Type types[] = {
{ T_TPAT0, "tpat0" }, { T_TPAT0, "tpat0" },
{ T_MIRCOL1, "mircol1" }, { T_MIRCOL1, "mircol1" },
{ T_BLOUP, "bloup" }, { T_BLOUP, "bloup" },
{ T_STRIPES, "stripes" },
{ 0, NULL } { 0, NULL }
}; };
@ -54,7 +56,6 @@ for (type = types; type->code; type++) {
return type->code; return type->code;
} }
} }
return -1; return -1;
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
@ -87,7 +88,7 @@ puts("\n\t-v\tincrease verbosity");
if (verbosity) { if (verbosity) {
fimg_print_version(1); fimg_print_version(1);
printf("*** compiled %s, %s\n", __DATE__, __TIME__); printf("*** compiled on the %s, at %s\n", __DATE__, __TIME__);
} }
exit(0); exit(0);
@ -190,7 +191,7 @@ else {
foo = fimg_dump_to_file(&fimg, fname, 0); foo = fimg_dump_to_file(&fimg, fname, 0);
} }
if (foo) { if (foo) {
fprintf(stderr, "dump fimg to %s -> %d\n", fname, foo); fprintf(stderr, "dump fimg to %s error -> %d\n", fname, foo);
exit(1); exit(1);
} }