Skip to content

Commit

Permalink
firmware-utils/mksercommfw: fix build with clang/macOS
Browse files Browse the repository at this point in the history
fixes error: non-void function 'main' should return a value

Fixes: FS#1770

Signed-off-by: Ryan Mounce <[email protected]>
  • Loading branch information
rmounce authored and mkresin committed Aug 14, 2018
1 parent 437e35f commit 9c6c7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/firmware-utils/src/mksercommfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int main(int argc, char *argv[])
bufferFile(&myfile, 0);
char chksum = getCheckSum(myfile.file_data, myfile.file_size);
printf("Checksum for File: %X.\n", chksum);
return;
return 0;
}

if (argc != 6) {
Expand Down

0 comments on commit 9c6c7d1

Please sign in to comment.