summaryrefslogtreecommitdiff
path: root/ot_mutex.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2008-10-28 01:27:21 +0000
committerDirk Engling <erdgeist@erdgeist.org>2008-10-28 01:27:21 +0000
commit7dcd727ce67f8b61b7d0cc531440ee9acb516660 (patch)
tree34a1c730f72fff9ac6a1838d701df3a15bf7a1fc /ot_mutex.c
parent32477fb1bab655e0e8164312480522daf74b9a73 (diff)
downloadopentracker-7dcd727ce67f8b61b7d0cc531440ee9acb516660.tar.gz
opentracker-7dcd727ce67f8b61b7d0cc531440ee9acb516660.zip
Whitespace fixes
Diffstat (limited to 'ot_mutex.c')
-rw-r--r--ot_mutex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ot_mutex.c b/ot_mutex.c
index 69491c3..bbef304 100644
--- a/ot_mutex.c
+++ b/ot_mutex.c
@@ -1,6 +1,6 @@
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
It is considered beerware. Prost. Skol. Cheers or whatever.
-
+
$id$ */
/* System */
@@ -93,7 +93,7 @@ void mutex_bucket_unlock( int bucket ) {
bucket_remove( bucket );
pthread_cond_broadcast( &bucket_being_unlocked );
pthread_mutex_unlock( &bucket_mutex );
-}
+}
void mutex_bucket_unlock_by_hash( ot_hash *hash ) {
unsigned char *local_hash = hash[0];
@@ -134,7 +134,7 @@ int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype ) {
}
/* Skip to end of list */
- tmptask = &tasklist;
+ tmptask = &tasklist;
while( *tmptask )
tmptask = &(*tmptask)->next;
*tmptask = task;
@@ -267,7 +267,7 @@ int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iove
MTX_DBG( "pushresult unlocks.\n" );
pthread_mutex_unlock( &tasklist_mutex );
MTX_DBG( "pushresult unlocked.\n" );
-
+
/* Indicate whether the worker has to throw away results */
return task ? 0 : -1;
}
@@ -291,7 +291,7 @@ int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovec ) {
*iovec_entries = (*task)->iovec_entries;
*iovec = (*task)->iovec;
socket = (*task)->socket;
-
+
*task = (*task)->next;
free( ptask );
}
@@ -319,4 +319,4 @@ void mutex_deinit( ) {
byte_zero( all_torrents, sizeof( all_torrents ) );
}
-const char *g_version_mutex_c = "$Source: /home/cvsroot/opentracker/ot_mutex.c,v $: $Revision: 1.11 $\n";
+const char *g_version_mutex_c = "$Source: /home/cvsroot/opentracker/ot_mutex.c,v $: $Revision: 1.12 $\n";