diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-22 20:25:47 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-22 20:25:47 +0000 |
| commit | 9c72004fada0af13e4c9b4682c733056a777dc59 (patch) | |
| tree | 6b045d347efb643512e61acef01c0c4e054b96fa /src/client | |
| parent | 37dc1c5480ea219c624ac2740506208f23296ede (diff) | |
- oprava warningov :)
git-svn-id: http://opensvn.csie.org/tuxanci_ng@242 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/client.c | 9 | ||||
| -rw-r--r-- | src/client/saveLoad.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/client/client.c b/src/client/client.c index 66c5700..399324a 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -57,7 +57,6 @@ static int traffic_down; static int traffic_up; #endif - typedef struct proto_cmd_client_struct { char *name; @@ -229,6 +228,8 @@ void sendServer(char *msg) assert( msg != NULL ); + ret = -1; + #ifndef PUBLIC_SERVER if( isParamFlag("--send") ) { @@ -269,7 +270,8 @@ static int eventServerSelect() int ret; memset(buffer, 0, STR_PROTO_SIZE); - + ret = -1; + #ifdef SUPPORT_UDP if( sock_server_udp != NULL ) { @@ -382,6 +384,9 @@ static void selectClientSocket() int sock; bool_t isNext; + max_fd = 0; + sock = 0; + #ifdef SUPPORT_UDP if( sock_server_udp != NULL ) { diff --git a/src/client/saveLoad.c b/src/client/saveLoad.c index 05452a9..a02a80f 100644 --- a/src/client/saveLoad.c +++ b/src/client/saveLoad.c @@ -215,6 +215,8 @@ static arena_t* loadContextArenaFromTextFile(textFile_t *textFile) arena_t *arena; int i; + arena = NULL; + for( i = 0 ; i < textFile->text->count ; i++ ) { char *line; |