Skip to content

Commit

Permalink
Exit value reflects conformance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jackson committed Oct 2, 2007
1 parent dbe78be commit 4616554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ int main(int argc, char **argv)
!has_valid_dummy_block ||
!has_valid_extension_count ||
!manufacturer_name_well_formed) {
conformant = 0;
printf("EDID block does not conform at all!\n");
if (!has_valid_checksum)
printf("\tBlock has broken checksum\n");
Expand Down Expand Up @@ -858,5 +859,5 @@ int main(int argc, char **argv)

free(edid);

return 0;
return !conformant;
}

0 comments on commit 4616554

Please sign in to comment.