diff options
author | erdgeist <> | 2008-10-28 01:27:22 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-28 01:27:22 +0000 |
commit | daaee855b251b1c5368b6a577a5fcba4bf7828c6 (patch) | |
tree | e453fbc06cb15b6b970f33abbff9d3bc8240b8ad /ot_livesync.c | |
parent | 55d03b9a1b7344fde72b5474734ea53ff766d1d4 (diff) |
Whitespace fixes
Diffstat (limited to 'ot_livesync.c')
-rw-r--r-- | ot_livesync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ot_livesync.c b/ot_livesync.c index 92c947c..3e27c9a 100644 --- a/ot_livesync.c +++ b/ot_livesync.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. |
3 | 3 | ||
4 | $id$ */ | 4 | $id$ */ |
5 | 5 | ||
6 | /* System */ | 6 | /* System */ |
@@ -54,7 +54,7 @@ void livesync_init( ) { | |||
54 | 54 | ||
55 | pthread_create( &thread_id, NULL, livesync_worker, NULL ); | 55 | pthread_create( &thread_id, NULL, livesync_worker, NULL ); |
56 | } | 56 | } |
57 | 57 | ||
58 | void livesync_deinit() { | 58 | void livesync_deinit() { |
59 | pthread_cancel( thread_id ); | 59 | pthread_cancel( thread_id ); |
60 | } | 60 | } |
@@ -106,7 +106,7 @@ void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer, const | |||
106 | stuck when there's not enough traffic to fill udp packets fast | 106 | stuck when there's not enough traffic to fill udp packets fast |
107 | enough */ | 107 | enough */ |
108 | void livesync_ticker( ) { | 108 | void livesync_ticker( ) { |
109 | if( ( g_now - livesync_lastpacket_time > LIVESYNC_MAXDELAY) && | 109 | if( ( g_now - livesync_lastpacket_time > LIVESYNC_MAXDELAY) && |
110 | ( livesync_outbuffer_pos > livesync_outbuffer_start + sizeof( g_tracker_id ) ) ) | 110 | ( livesync_outbuffer_pos > livesync_outbuffer_start + sizeof( g_tracker_id ) ) ) |
111 | livesync_issuepacket(); | 111 | livesync_issuepacket(); |
112 | } | 112 | } |
@@ -115,7 +115,7 @@ static void * livesync_worker( void * args ) { | |||
115 | uint8_t in_ip[4]; uint16_t in_port; | 115 | uint8_t in_ip[4]; uint16_t in_port; |
116 | ssize_t datalen; | 116 | ssize_t datalen; |
117 | int off; | 117 | int off; |
118 | 118 | ||
119 | args = args; | 119 | args = args; |
120 | 120 | ||
121 | while( 1 ) { | 121 | while( 1 ) { |