-Wall insists that main return an int.
authorBodo Möller <bodo@openssl.org>
Mon, 4 Sep 2000 15:29:06 +0000 (15:29 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 4 Sep 2000 15:29:06 +0000 (15:29 +0000)
demos/state_machine/state_machine.c

index b66d059..690423e 100644 (file)
@@ -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;
     }