Make the code C90 compliant for VS2010

This commit is contained in:
Mathieu Malaterre 2012-02-14 11:54:10 +00:00
parent 4d76145884
commit 9a5ab44e35
1 changed files with 3 additions and 2 deletions

View File

@ -58,17 +58,18 @@ int main(int argc, char *argv[]){
dec_server_record_t *server_record;
client_t client;
int port = 50000;
int erreur;
if( argc > 1)
port = atoi( argv[1]);
#ifdef _WIN32
int erreur = WSAStartup(MAKEWORD(2,2),&initialisation_win32);
erreur = WSAStartup(MAKEWORD(2,2),&initialisation_win32);
if( erreur!=0)
fprintf( stderr, "Erreur initialisation Winsock error : %d %d\n",erreur,WSAGetLastError());
else
printf( "Initialisation Winsock\n");
#endif //_WIN32
#endif /*_WIN32*/
server_record = init_dec_server( port);