Make the code C90 compliant for VS2010
This commit is contained in:
parent
4d76145884
commit
9a5ab44e35
|
@ -58,17 +58,18 @@ int main(int argc, char *argv[]){
|
||||||
dec_server_record_t *server_record;
|
dec_server_record_t *server_record;
|
||||||
client_t client;
|
client_t client;
|
||||||
int port = 50000;
|
int port = 50000;
|
||||||
|
int erreur;
|
||||||
|
|
||||||
if( argc > 1)
|
if( argc > 1)
|
||||||
port = atoi( argv[1]);
|
port = atoi( argv[1]);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int erreur = WSAStartup(MAKEWORD(2,2),&initialisation_win32);
|
erreur = WSAStartup(MAKEWORD(2,2),&initialisation_win32);
|
||||||
if( erreur!=0)
|
if( erreur!=0)
|
||||||
fprintf( stderr, "Erreur initialisation Winsock error : %d %d\n",erreur,WSAGetLastError());
|
fprintf( stderr, "Erreur initialisation Winsock error : %d %d\n",erreur,WSAGetLastError());
|
||||||
else
|
else
|
||||||
printf( "Initialisation Winsock\n");
|
printf( "Initialisation Winsock\n");
|
||||||
#endif //_WIN32
|
#endif /*_WIN32*/
|
||||||
|
|
||||||
server_record = init_dec_server( port);
|
server_record = init_dec_server( port);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue