Changeset 2391
- Timestamp:
- Jul 18, 2007, 5:25:42 PM (16 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/clients.c
r2383 r2391 24 24 25 25 #include <ctype.h> /* isprint */ 26 26 27 #include "transmission.h" 28 #include "trcompat.h" 27 29 28 30 static int charToInt( char character ); -
trunk/libtransmission/http.c
r2343 r2391 32 32 #include "http.h" 33 33 #include "net.h" 34 #include "trcompat.h" 34 35 35 36 #define HTTP_PORT 80 /* default http port 80 */ -
trunk/libtransmission/ipcparse.c
r2369 r2391 241 241 { 242 242 RB_INIT( &tree->msgs ); 243 tree->def = NULL;243 tree->def = (trd_msgfunc) NULL; 244 244 } 245 245 … … 255 255 assert( IPC_MSG_VERSION != id ); 256 256 257 bzero( &key, sizeof key );257 memset( &key, 0, sizeof key ); 258 258 key.id = id; 259 259 entry = RB_FIND( functree, &tree->msgs, &key ); … … 1115 1115 if( NULL != msg && msg->minvers <= info->vers ) 1116 1116 { 1117 bzero( &key, sizeof key );1117 memset( &key, 0, sizeof key ); 1118 1118 key.id = msg->id; 1119 1119 handler = RB_FIND( functree, &info->funcs->msgs, &key ); … … 1163 1163 assert( MSGVALID( id ) ); 1164 1164 1165 bzero( &key, sizeof key );1165 memset( &key, 0, sizeof key ); 1166 1166 key.id = id; 1167 1167 return ( NULL != RB_FIND( functree, &info->funcs->msgs, &key ) ); … … 1219 1219 } 1220 1220 1221 bzero( &key, sizeof key );1221 memset( &key, 0, sizeof key ); 1222 1222 for( jj = 0; list->val.l.count > jj; jj++ ) 1223 1223 { … … 1303 1303 } 1304 1304 1305 bzero( &key, sizeof key );1305 memset( &key, 0, sizeof key ); 1306 1306 key.name = name; 1307 1307 return RB_FIND( msgtree, &tree, &key ); -
trunk/libtransmission/peertree.h
r2339 r2391 47 47 } 48 48 49 RB_GENERATE_STATIC( tr_peertree_s, tr_peertree_entry_s, magic, peertreekeycmp ) ;49 RB_GENERATE_STATIC( tr_peertree_s, tr_peertree_entry_s, magic, peertreekeycmp ) 50 50 51 51 static int -
trunk/libtransmission/platform.c
r2343 r2391 228 228 resume_thread( t->thread ); 229 229 #else 230 pthread_create( &t->thread, NULL, (void * ) ThreadFunc, t );230 pthread_create( &t->thread, NULL, (void * (*) (void *)) ThreadFunc, t ); 231 231 #endif 232 232 } -
trunk/libtransmission/upnp.c
r2358 r2391 27 27 #include <netinet/in.h> 28 28 #include <arpa/inet.h> 29 #include <limits.h> 29 30 #include <stdarg.h> 30 31 … … 32 33 #include "http.h" 33 34 #include "net.h" 35 #include "trcompat.h" 34 36 #include "upnp.h" 35 37 #include "xml.h"
Note: See TracChangeset
for help on using the changeset viewer.