[Gpredict-svn] SF.net SVN: gpredict:[569] trunk/src/main.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2010-01-02 17:57:41
|
Revision: 569 http://gpredict.svn.sourceforge.net/gpredict/?rev=569&view=rev Author: csete Date: 2010-01-02 17:57:34 +0000 (Sat, 02 Jan 2010) Log Message: ----------- Fixed indentation. Modified Paths: -------------- trunk/src/main.c Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2009-12-30 20:29:36 UTC (rev 568) +++ trunk/src/main.c 2010-01-02 17:57:34 UTC (rev 569) @@ -143,14 +143,14 @@ #ifdef WIN32 // Initializing Windozze Sockets - InitWinSock2(); + InitWinSock2(); #endif gtk_main (); #ifdef WIN32 - // Cleanup Windozze Sockets - CloseWinSock2(); + // Cleanup Windozze Sockets + CloseWinSock2(); #endif return 0; } @@ -159,37 +159,37 @@ /* This code was given from MSDN */ static void InitWinSock2(void) { - WORD wVersionRequested; - WSADATA wsaData; - int err; - - wVersionRequested = MAKEWORD( 2, 2 ); - - err = WSAStartup( wVersionRequested, &wsaData ); - if ( err != 0 ) { - /* Tell the user that we could not find a usable */ - /* WinSock DLL. */ - return; - } - - /* Confirm that the WinSock DLL supports 2.2.*/ - /* Note that if the DLL supports versions later */ - /* than 2.2 in addition to 2.2, it will still return */ - /* 2.2 in wVersion since that is the version we */ - /* requested. */ - - if ( LOBYTE( wsaData.wVersion ) != 2 || - HIBYTE( wsaData.wVersion ) != 2 ) { - /* Tell the user that we could not find a usable */ - /* WinSock DLL. */ - WSACleanup( ); - return; - } + WORD wVersionRequested; + WSADATA wsaData; + int err; + + wVersionRequested = MAKEWORD( 2, 2 ); + + err = WSAStartup( wVersionRequested, &wsaData ); + if ( err != 0 ) { + /* Tell the user that we could not find a usable */ + /* WinSock DLL. */ + return; + } + + /* Confirm that the WinSock DLL supports 2.2.*/ + /* Note that if the DLL supports versions later */ + /* than 2.2 in addition to 2.2, it will still return */ + /* 2.2 in wVersion since that is the version we */ + /* requested. */ + + if ( LOBYTE( wsaData.wVersion ) != 2 || + HIBYTE( wsaData.wVersion ) != 2 ) { + /* Tell the user that we could not find a usable */ + /* WinSock DLL. */ + WSACleanup( ); + return; + } } static void CloseWinSock2(void) { - WSACleanup(); + WSACleanup(); } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |