diff --git a/demos/state_machine/state_machine.c b/demos/state_machine/state_machine.c index b66d059266..690423e476 100644 --- a/demos/state_machine/state_machine.c +++ b/demos/state_machine/state_machine.c @@ -258,7 +258,7 @@ int OpenSocket(int nPort) return nFD; } -void main(int argc,char **argv) +int main(int argc,char **argv) { SSLStateMachine *pMachine; int nPort; @@ -366,4 +366,6 @@ void main(int argc,char **argv) SSLStateMachine_write_inject(pMachine,buf,n); } } + /* not reached */ + return 0; }