From d7a05fc1d5e7e630b5c8c1be32564a63992e4e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Mon, 22 Feb 2016 17:35:09 +0100 Subject: [PATCH] codegen: return 0 in stub main() --- pysstv/examples/codeman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pysstv/examples/codeman.c b/pysstv/examples/codeman.c index fde06a5..1074261 100644 --- a/pysstv/examples/codeman.c +++ b/pysstv/examples/codeman.c @@ -3,7 +3,7 @@ #include "codegen.c" -void main() { +int main() { uint32_t offset, size; FILE *f = fopen("320x256rgb.bmp", "r"); fseek(f, 0x02, SEEK_SET); @@ -25,4 +25,6 @@ void main() { fwrite(&(freqs[i]), 4, 1, stdout); fwrite(&(msecs[i]), 4, 1, stdout); } + + return 0; }