From 357b160cde3c0302b0c6b964506a4f9053bbcf56 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 7 Sep 2012 04:25:04 +0000 Subject: [PATCH] remove trailing spaces --- daemon/remote.c | 4 ++-- gtk/open-dialog.c | 1 - libtransmission/peer-msgs.c | 4 ++-- utils/show.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/daemon/remote.c b/daemon/remote.c index 3775d0394..fbc0e1586 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -861,8 +861,8 @@ printDetails( tr_benc * top ) printf( " Name: %s\n", str ); if( tr_bencDictFindStr( t, "hashString", &str ) ) printf( " Hash: %s\n", str ); - if( tr_bencDictFindStr( t, "magnetLink", &str ) ) - printf( " Magnet: %s\n", str ); + if( tr_bencDictFindStr( t, "magnetLink", &str ) ) + printf( " Magnet: %s\n", str ); printf( "\n" ); printf( "TRANSFER\n" ); diff --git a/gtk/open-dialog.c b/gtk/open-dialog.c index 05cddddb4..9c8816d57 100644 --- a/gtk/open-dialog.c +++ b/gtk/open-dialog.c @@ -475,7 +475,6 @@ onOpenURLResponse( GtkDialog * dialog, int response, gpointer user_data ) { handled = TRUE; } - if( handled ) gtk_widget_destroy( GTK_WIDGET( dialog ) ); diff --git a/libtransmission/peer-msgs.c b/libtransmission/peer-msgs.c index 7c58b4713..2895e460e 100644 --- a/libtransmission/peer-msgs.c +++ b/libtransmission/peer-msgs.c @@ -1689,8 +1689,8 @@ updateDesiredRequestCount( tr_peermsgs * msgs ) rate_Bps = MIN( rate_Bps, tr_torrentGetSpeedLimit_Bps( torrent, TR_PEER_TO_CLIENT ) ); /* honor the session limits, if enabled */ - if( tr_torrentUsesSessionLimits( torrent ) - && tr_sessionGetActiveSpeedLimit_Bps( torrent->session, TR_PEER_TO_CLIENT, &irate_Bps ) ) + if( tr_torrentUsesSessionLimits( torrent ) && + tr_sessionGetActiveSpeedLimit_Bps( torrent->session, TR_PEER_TO_CLIENT, &irate_Bps ) ) rate_Bps = MIN( rate_Bps, irate_Bps ); /* use this desired rate to figure out how diff --git a/utils/show.c b/utils/show.c index 00789541b..dd75e19d4 100644 --- a/utils/show.c +++ b/utils/show.c @@ -342,7 +342,7 @@ main( int argc, char * argv[] ) if( scrapeFlag ) doScrape( &inf ); - else + else showInfo( &inf ); }