From 54705b399263b7cc93b037dd77e94eadfeee068e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Mon, 4 Sep 2000 15:29:06 +0000 Subject: [PATCH] -Wall insists that main return an int. --- demos/state_machine/state_machine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }