]> granicus.if.org Git - transmission/commitdiff
Replace tabs with spaces; remove trailing spaces
authorMike Gelfand <mikedld@mikedld.com>
Fri, 2 Jan 2015 11:15:31 +0000 (11:15 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Fri, 2 Jan 2015 11:15:31 +0000 (11:15 +0000)
42 files changed:
daemon/daemon.c
daemon/remote.c
gtk/Makefile.am
gtk/main.c
gtk/transmission-gtk.desktop.in
gtk/util.h
libtransmission/announcer.c
libtransmission/libtransmission-test.c
libtransmission/log.c
libtransmission/makemeta-test.c
libtransmission/metainfo-test.c
libtransmission/move-test.c
libtransmission/net.h
libtransmission/peer-mgr.c
libtransmission/peer-mgr.h
libtransmission/peer-msgs.c
libtransmission/platform-quota.c
libtransmission/quark.c
libtransmission/rename-test.c
libtransmission/rpc-server.c
libtransmission/rpcimpl.c
libtransmission/session.c
libtransmission/torrent.c
libtransmission/torrent.h
libtransmission/tr-lpd.c
libtransmission/trevent.c
libtransmission/upnp.c
libtransmission/variant-json.c
libtransmission/variant.c
libtransmission/variant.h
libtransmission/web.c
libtransmission/webseed.c
qt/README.txt
qt/app.cc
qt/config.pri.in
qt/file-tree.cc
qt/prefs-dialog.cc
qt/qtr.pro
qt/session.cc
qt/torrent-filter.cc
qt/utils.cc
utils/create.c

index bb987cf91968377e54ad6d75a2a2a7a39470cce2..8f741a499b49bd4ac7de57c47bf1cff9df3d7301 100644 (file)
@@ -389,9 +389,9 @@ reportStatus (void)
     const double dn = tr_sessionGetRawSpeed_KBps (mySession, TR_DOWN);
 
     if (up>0 || dn>0)
-       sd_notifyf (0, "STATUS=Uploading %.2f KBps, Downloading %.2f KBps.\n", up, dn);
+        sd_notifyf (0, "STATUS=Uploading %.2f KBps, Downloading %.2f KBps.\n", up, dn);
     else
-       sd_notify (0, "STATUS=Idle.\n");
+        sd_notify (0, "STATUS=Idle.\n");
 }
 
 static void
@@ -574,7 +574,7 @@ main (int argc, char ** argv)
         exit (1);
     }
 
-    sd_notifyf (0, "MAINPID=%d\n", (int)getpid()); 
+    sd_notifyf (0, "MAINPID=%d\n", (int)getpid());
 
     /* setup event state */
     ev_base = event_base_new();
@@ -681,7 +681,7 @@ main (int argc, char ** argv)
     if (event_base_dispatch(ev_base) == -1)
     {
         tr_logAddError("Failed to launch daemon event loop: %s", tr_strerror(errno));
-       goto cleanup;
+        goto cleanup;
     }
 
 cleanup:
index 91b5b691252a1cd617d65c0194fd820bb8712591..84e01b8dbd71cb5606d0dbdfe20f40ba7a11b49d 100644 (file)
@@ -1765,7 +1765,7 @@ tr_curl_easy_init (struct evbuffer * writebuf)
     if (UseSSL)
     {
         curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 0); /* do not verify subject/hostname */
-        curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 0); /* since most certs will be self-signed, do not verify against CA */               
+        curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 0); /* since most certs will be self-signed, do not verify against CA */
     }
     if (sessionId) {
         char * h = tr_strdup_printf ("%s: %s", TR_RPC_SESSION_ID_HEADER, sessionId);
index c0924aeac8757251a0ea3907e7c0468652d69437..9a38cdab0f5793e5a277dbfcee7ff47fbf5cf69a 100644 (file)
@@ -110,15 +110,15 @@ Productivity_DATA = $(DESKTOP_FILES)
 icon_DATA = transmission.png
 icondir = $(datadir)/pixmaps
 
-UI_FILES = transmission-ui.xml 
+UI_FILES = transmission-ui.xml
 
-transmission-resources.c: transmission.gresource.xml $(UI_FILES) 
+transmission-resources.c: transmission.gresource.xml $(UI_FILES)
        $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
-         --generate-source --c-name transmission $< 
+         --generate-source --c-name transmission $<
 
-transmission-resources.h: transmission.gresource.xml $(UI_FILES) 
+transmission-resources.h: transmission.gresource.xml $(UI_FILES)
        $(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
-         --generate-header --c-name transmission $< 
+         --generate-header --c-name transmission $<
 
 CLEANFILES += \
        transmission-resources.c \
index ddfc1f4438c74f111a9388ccea37ee780b6a0cc2..0a8882cafa132d190ef23f6cd0ae791fecfae6c5 100644 (file)
@@ -64,7 +64,7 @@
 #define SHOW_LICENSE
 static const char * LICENSE =
   "Copyright 2005-2014. All code is copyrighted by the respective authors.\n"
-  "\n"           
+  "\n"
   "Transmission can be redistributed and/or modified under the terms of the "
   "GNU GPL versions 2 or 3 or by any future license endorsed by Mnemosyne LLC.\n"
   "\n"
@@ -468,7 +468,7 @@ on_rpc_changed (tr_session            * session G_GNUC_UNUSED,
   data->type = type;
   data->torrent_id = tr_torrentId (tor);
   gdk_threads_add_idle (on_rpc_changed_idle, data);
-  
+
   return TR_RPC_NOREMOVE;
 }
 
index 95e345e389c822733b86ca9649853d40a205aa31..51ee8b771e99e1b64f53fa1e83cde1f3615d7e62 100644 (file)
@@ -12,7 +12,7 @@ StartupNotify=true
 MimeType=application/x-bittorrent;x-scheme-handler/magnet;
 Categories=Network;FileTransfer;P2P;GTK;
 X-Ubuntu-Gettext-Domain=transmission
-X-AppInstall-Keywords=torrent 
+X-AppInstall-Keywords=torrent
 Actions=Pause;Minimize;
 
 [Desktop Action Pause]
index 30788c354159bdae34e023b0f340e9db50ebb816..5a239d1d48ff2f2f93683e7f2361cae30aa79d01 100644 (file)
@@ -48,7 +48,7 @@ extern const char * speed_T_str;
                                                                          \
   return q;                                                             \
  }
-#endif 
+#endif
 
 
 /* macro to shut up "unused parameter" warnings */
index dee3a850012cbc0109f5ee761dfec9fb754eeb48..96a05eab21392145c889e0bccce1e3c3d00905d1 100644 (file)
@@ -1351,7 +1351,7 @@ on_scrape_done (const tr_scrape_response * response, void * vsession)
                 if (!response->did_connect)
                 {
                     on_scrape_error (session, tier, _("Could not connect to tracker"));
-               }
+                }
                 else if (response->did_timeout)
                 {
                     on_scrape_error (session, tier, _("Tracker did not respond"));
index f3b5596dfe76246134d68666f0d94d203cfc5914..a42a2a6355ceb496bbd978647f6254833a03cea0 100644 (file)
@@ -311,7 +311,7 @@ libttest_zero_torrent_init (tr_session * session)
   tr_torrent * tor;
   tr_ctor * ctor;
 
-  /* 
+  /*
      1048576 files-filled-with-zeroes/1048576
         4096 files-filled-with-zeroes/4096
          512 files-filled-with-zeroes/512
@@ -388,7 +388,7 @@ libttest_zero_torrent_populate (tr_torrent * tor, bool complete)
       assert (path != NULL);
       err = errno;
       assert (tr_sys_path_exists (path, NULL));
-      errno = err; 
+      errno = err;
       tr_free (path);
     }
 
index ca41a908d456a41c643cdb9abb613950def4002d..5f55ab6f0258fc91580527ac9b92c9854abb0779 100644 (file)
@@ -151,7 +151,7 @@ tr_logGetTimeStr (char * buf, int buflen)
 
   seconds = tv.tv_sec;
   tr_localtime_r (&seconds, &now_tm);
-  strftime (tmp, sizeof (tmp), "%Y-%m-%d %H:%M:%S.%%03d %Z", &now_tm); 
+  strftime (tmp, sizeof (tmp), "%Y-%m-%d %H:%M:%S.%%03d %Z", &now_tm);
   milliseconds = tv.tv_usec / 1000;
   tr_snprintf (buf, buflen, tmp, milliseconds);
 
index f8dc78c611f33153c3fb78d36a69ff12b12802a9..76e26c81aaef0391e7fc48842e53a5951127a40b 100644 (file)
@@ -135,7 +135,7 @@ test_single_directory_impl (const tr_tracker_info * trackers,
   size_t totalSize;
   size_t i;
   char* tmpstr;
-  
+
 
   /* set up our local test sandbox */
   sandbox = libtest_sandbox_create();
@@ -212,7 +212,7 @@ test_single_directory_impl (const tr_tracker_info * trackers,
 
   return 0;
 }
-  
+
 static int
 test_single_directory_random_payload_impl (const tr_tracker_info * trackers,
                                            const size_t            trackerCount,
index b5e44527bd3117f4356901fa32acea4a2a1ce229..82804fdec8a854b6e2cca206667270c2a0f274f5 100644 (file)
@@ -96,7 +96,7 @@ test_metainfo (void)
 
   return 0;
 }
-    
+
 int
 main (void)
 {
index 64ae22f15683ed65123b6aeb571bce18c8b0355d..3de39fbc5a4c63773b0fade3379365b8e1b6c195 100644 (file)
@@ -65,7 +65,7 @@ test_incomplete_dir_threadfunc (void * vdata)
   tr_torrentGotBlock (data->tor, data->block);
   data->done = true;
 }
-  
+
 static int
 test_incomplete_dir_impl (const char * incomplete_dir, const char * download_dir)
 {
@@ -179,7 +179,7 @@ test_set_location (void)
   session = libttest_session_init (NULL);
   target_dir = tr_buildPath (tr_sessionGetConfigDir (session), "target", NULL);
   tr_sys_dir_create (target_dir, TR_SYS_DIR_CREATE_PARENTS, 0777, NULL);
-  
+
   /* init a torrent. */
   tor = libttest_zero_torrent_init (session);
   libttest_zero_torrent_populate (tor, true);
index a85053980bc49e470bd719cb5a48d23730b1f55c..1f53c6dd80649784b4d341fbd0133dd4a75458f7 100644 (file)
@@ -165,7 +165,7 @@ const unsigned char *tr_globalIPv6 (void);
 
 #if defined (_WIN32) && !defined (QT_DLL)
 /* The QT exclusion is because something clashes whith the next include */
-#include <ws2tcpip.h>          /* socklen_t */
+#include <ws2tcpip.h> /* socklen_t */
 
 #endif
 
index bf96d4b89a926938093a10f64ac3a7b23cffb42c..2eff21d6965008880be72f01012ba88bf8a7a838 100644 (file)
@@ -3281,7 +3281,7 @@ getReconnectIntervalSecs (const struct peer_atom * atom, const time_t now)
       /* penalize peers that were unreachable the last time we tried */
       if (unreachable)
         step += 2;
+
       switch (step)
         {
           case 0: sec = 0; break;
index 924215be06d5f9872f8f91d3df6c1c44432a20c8..b392f31f28e2948c180c3042c5f1e3f0b0b1842a 100644 (file)
@@ -183,7 +183,7 @@ void         tr_peerMgrGotBadPiece          (tr_torrent         * tor,
 
 void         tr_peerMgrPieceCompleted       (tr_torrent         * tor,
                                              tr_piece_index_t     pieceIndex);
+
 
 
 /* @} */
index 5d8998c5b0e2d3e406c8e2e78038365d6e07d413..8e656bd69f1c33dee72855c17db2103dbd284d3a 100644 (file)
@@ -690,7 +690,7 @@ updateFastSet (tr_peerMsgs * msgs UNUSED)
 ****  ACTIVE
 ***/
 
-static bool 
+static bool
 tr_peerMsgsCalculateActive (const tr_peerMsgs * msgs, tr_direction direction)
 {
   bool is_active;
@@ -1829,7 +1829,7 @@ updateDesiredRequestCount (tr_peerMsgs * msgs)
 
         /* honor the session limits, if enabled */
         if (tr_torrentUsesSessionLimits (torrent) &&
-           tr_sessionGetActiveSpeedLimit_Bps (torrent->session, TR_PEER_TO_CLIENT, &irate_Bps))
+            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
@@ -2469,7 +2469,7 @@ pexPulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmsgs)
 static bool
 peermsgs_is_transferring_pieces (const struct tr_peer * peer,
                                  uint64_t               now,
-                                 tr_direction           direction, 
+                                 tr_direction           direction,
                                  unsigned int         * setme_Bps)
 {
   unsigned int Bps = 0;
index b31ab9a48012e2ff4c6532fedfdeb7e2d1d37bfe..6bc6cd83ae9aaa22d4ea2e126b56075d7de3d0cc 100644 (file)
@@ -253,13 +253,13 @@ getquota (const char * device)
   if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)
     {
 #elif defined(__sun)
-  struct quotctl  op; 
-  int fd = open(device, O_RDONLY); 
-  if (fd < 0) 
-    return -1; 
-  op.op = Q_GETQUOTA; 
-  op.uid = getuid(); 
-  op.addr = (caddr_t) &dq; 
+  struct quotctl  op;
+  int fd = open(device, O_RDONLY);
+  if (fd < 0)
+    return -1;
+  op.op = Q_GETQUOTA;
+  op.uid = getuid();
+  op.addr = (caddr_t) &dq;
   if (ioctl(fd, Q_QUOTACTL, &op) == 0)
     {
       close(fd);
index e24d50dbcfe44e75c3b1182ff4b9f66b51b4d4e8..e45202d4916630eaa760e96edf4c032eeb02c5f5 100644 (file)
@@ -488,7 +488,7 @@ tr_quark_new (const void * str, size_t len)
 
   return ret;
 }
-  
+
 const char *
 tr_quark_get_string (tr_quark q, size_t * len)
 {
index ce7975c2b96724cf3331e8ce86ec529499ec2c39..94d4bc0b96484d44de5bd1d6c7d03a48724c8462 100644 (file)
@@ -117,7 +117,7 @@ create_torrent_from_base64_metainfo (tr_ctor * ctor, const char * metainfo_base6
   assert (!err);
 
   /* cleanup */
-  tr_free (metainfo); 
+  tr_free (metainfo);
   return tor;
 }
 
@@ -183,7 +183,7 @@ test_single_filename_torrent (void)
   ****  Now try a rename that should succeed
   ***/
 
-  tmpstr = tr_buildPath (tor->currentDir, "hello-world.txt", NULL); 
+  tmpstr = tr_buildPath (tor->currentDir, "hello-world.txt", NULL);
   check (tr_sys_path_exists (tmpstr, NULL));
   check_streq ("hello-world.txt", tr_torrentName(tor));
   check_int_eq (0, torrentRenameAndWait (tor, tor->info.name, "foobar"));
@@ -193,7 +193,7 @@ test_single_filename_torrent (void)
   check_streq ("foobar", tr_torrentName(tor)); /* confirm the torrent's name is now 'foobar' */
   check_streq ("foobar", tor->info.files[0].name); /* confirm the file's name is now 'foobar' in our struct */
   check (strstr (tor->info.torrent, "foobar") == NULL); /* confirm the name in the .torrent file hasn't changed */
-  tmpstr = tr_buildPath (tor->currentDir, "foobar", NULL); 
+  tmpstr = tr_buildPath (tor->currentDir, "foobar", NULL);
   check (tr_sys_path_exists (tmpstr, NULL)); /* confirm the file's name is now 'foobar' on the disk */
   tr_free (tmpstr);
   check (testFileExistsAndConsistsOfThisString (tor, 0, "hello, world!\n")); /* confirm the contents are right */
@@ -209,7 +209,7 @@ test_single_filename_torrent (void)
   ****  ...and rename it back again
   ***/
 
-  tmpstr = tr_buildPath (tor->currentDir, "foobar", NULL); 
+  tmpstr = tr_buildPath (tor->currentDir, "foobar", NULL);
   check (tr_sys_path_exists (tmpstr, NULL));
   check_int_eq (0, torrentRenameAndWait (tor, "foobar", "hello-world.txt"));
   check (!tr_sys_path_exists (tmpstr, NULL));
@@ -501,7 +501,7 @@ test_partial_file (void)
   const char * strings[3];
 
   /***
-  ****  create our test torrent with an incomplete .part file 
+  ****  create our test torrent with an incomplete .part file
   ***/
 
   tor = libttest_zero_torrent_init (session);
index 505408ace45090b9f8ef492701c8b346aeaf766b..aa0cb5c37fb4a782f959d6511bd806084a69a8d7 100644 (file)
@@ -936,7 +936,7 @@ missing_settings_key (const tr_quark q)
 {
   const char * str = tr_quark_get_string (q, NULL);
   tr_logAddNamedError (MY_NAME, _("Couldn't find settings key \"%s\""), str);
-} 
+}
 
 tr_rpc_server *
 tr_rpcInit (tr_session  * session, tr_variant * settings)
index 33621e93fe676d6fdf1704a4651019418ace3a3d..3b369fb1b094b3c0fd474d3dfb10af4079a2f0d7 100644 (file)
@@ -251,14 +251,14 @@ queueMoveBottom (tr_session               * session,
   return NULL;
 }
 
-static int 
-compareTorrentByQueuePosition (const void * va, const void * vb) 
-{ 
-  const tr_torrent * a = * (const tr_torrent **) va; 
-  const tr_torrent * b = * (const tr_torrent **) vb; 
+static int
+compareTorrentByQueuePosition (const void * va, const void * vb)
+{
+  const tr_torrent * a = * (const tr_torrent **) va;
+  const tr_torrent * b = * (const tr_torrent **) vb;
 
-  return a->queuePosition - b->queuePosition; 
-} 
+  return a->queuePosition - b->queuePosition;
+}
 
 static const char*
 torrentStart (tr_session               * session,
@@ -273,7 +273,7 @@ torrentStart (tr_session               * session,
   assert (idle_data == NULL);
 
   torrents = getTorrents (session, args_in, &torrentCount);
-  qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition); 
+  qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition);
   for (i=0; i<torrentCount; ++i)
     {
       tr_torrent * tor = torrents[i];
@@ -301,7 +301,7 @@ torrentStartNow (tr_session               * session,
   assert (idle_data == NULL);
 
   torrents = getTorrents (session, args_in, &torrentCount);
-  qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition); 
+  qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition);
   for (i=0; i<torrentCount; ++i)
     {
       tr_torrent * tor = torrents[i];
index 4f79d4f7ed1b174545cb85f40ce20aebe84f4107..22681df3850b0f674257607ce13688c06a3333f4 100644 (file)
@@ -1762,7 +1762,7 @@ tr_sessionGetTorrents (tr_session * session, int * setme_n)
     torrents[i] = tor = tr_torrentNext (session, tor);
 
   return torrents;
-} 
+}
 
 static int
 compareTorrentByCur (const void * va, const void * vb)
@@ -2253,7 +2253,7 @@ loadBlocklists (tr_session * session)
     {
       char * path;
       char * load = NULL;
+
       if (name[0] == '.') /* ignore dotfiles */
         continue;
 
index e69f8318ef88bd72640b13f3caf0192d7a766ded..36b409d79e9e8c28f8b7721e92ed20838732f5b4 100644 (file)
@@ -1929,19 +1929,19 @@ closeTorrent (void * vtor)
 }
 
 void
-tr_torrentFree (tr_torrent * tor) 
+tr_torrentFree (tr_torrent * tor)
 {
-  if (tr_isTorrent (tor)) 
-    { 
-      tr_session * session = tor->session; 
-      assert (tr_isSession (session)); 
-      tr_sessionLock (session); 
+  if (tr_isTorrent (tor))
+    {
+      tr_session * session = tor->session;
+      assert (tr_isSession (session));
+      tr_sessionLock (session);
 
-      tr_torrentClearCompletenessCallback (tor); 
-      tr_runInEventThread (session, closeTorrent, tor); 
+      tr_torrentClearCompletenessCallback (tor);
+      tr_runInEventThread (session, closeTorrent, tor);
 
-      tr_sessionUnlock (session); 
-    } 
+      tr_sessionUnlock (session);
+    }
 }
 
 struct remove_data
@@ -1958,7 +1958,7 @@ removeTorrent (void * vdata)
 {
   struct remove_data * data = vdata;
   tr_session * session = data->tor->session;
-  tr_sessionLock (session); 
+  tr_sessionLock (session);
 
   if (data->deleteFlag)
     tr_torrentDeleteLocalData (data->tor, data->deleteFunc);
@@ -1967,7 +1967,7 @@ removeTorrent (void * vdata)
   closeTorrent (data->tor);
   tr_free (data);
 
-  tr_sessionUnlock (session); 
+  tr_sessionUnlock (session);
 }
 
 void
@@ -3700,13 +3700,13 @@ renameTorrentFileString (tr_torrent       * tor,
 
       tr_free (tmp);
     }
-     
+
   if (!strcmp (file->name, name))
     {
       tr_free (name);
     }
   else
-    { 
+    {
       tr_free (file->name);
       file->name = name;
       file->is_renamed = true;
index a02341734c4b6e6a3142a8a623f4540b41b26660..60a4c0839f836da55a5e7e2f8cbc8be718062fcf 100644 (file)
@@ -303,10 +303,10 @@ tr_torBlockCountBytes (const tr_torrent * tor, const tr_block_index_t block)
                                         : tor->blockSize;
 }
 
-static inline void tr_torrentLock (const tr_torrent * tor) 
-{ 
-  tr_sessionLock (tor->session); 
-} 
+static inline void tr_torrentLock (const tr_torrent * tor)
+{
+  tr_sessionLock (tor->session);
+}
 static inline bool tr_torrentIsLocked (const tr_torrent * tor)
 {
   return tr_sessionIsLocked (tor->session);
index 4a484c982ee63c371c0b598e16436179ecb93cad..4e403e4833215081bd92908db030f4ceeda6187c 100644 (file)
@@ -32,7 +32,7 @@ THE SOFTWARE.
 #ifdef _WIN32
   #include <inttypes.h>
   #include <ws2tcpip.h>
-  typedef uint16_t in_port_t;                  /* all missing */
+  typedef uint16_t in_port_t; /* all missing */
 #else
   #include <sys/time.h>
   #include <unistd.h> /* close () */
index 93a03d21b8d1ba9c0c6294b294a8c16df9a16a22..2cda64eea6f029c49e92d69d9591c97b2403ac01 100644 (file)
@@ -109,10 +109,10 @@ piperead (int s, char *buf, int len)
             case WSAEWOULDBLOCK:
                 errno = EAGAIN;
                 break;
-           case WSAECONNRESET:
-               /* EOF on the pipe! (win32 socket based implementation) */
-               ret = 0;
-               /* fall through */
+            case WSAECONNRESET:
+                /* EOF on the pipe! (win32 socket based implementation) */
+                ret = 0;
+                /* fall through */
             default:
                 errno = werror;
                 break;
index f45fc427c29cf8d96c0d460812aa23385173f68b..35b0d153f50073a91dd9106c0e22245d948b4148 100644 (file)
@@ -116,14 +116,14 @@ tr_upnpGetSpecificPortMappingEntry (tr_upnp * handle, const char * proto)
 
 #if (MINIUPNPC_API_VERSION >= 10) /* adds remoteHost arg */
 
-    err = UPNP_GetSpecificPortMappingEntry (handle->urls.controlURL, 
-                                            handle->data.first.servicetype, 
+    err = UPNP_GetSpecificPortMappingEntry (handle->urls.controlURL,
+                                            handle->data.first.servicetype,
                                             portStr,
                                             proto,
-                                            NULL /*remoteHost*/, 
+                                            NULL /*remoteHost*/,
                                             intClient,
                                             intPort,
-                                            NULL /*desc*/, 
+                                            NULL /*desc*/,
                                             NULL /*enabled*/,
                                             NULL /*duration*/);
 
index c4db6e680a107e1635e46c04180d10c312758b5f..1eb5bc2502224019eece7a4c8bf94f343de0b377 100644 (file)
@@ -216,14 +216,14 @@ extract_escaped_string (const char       * in,
                           UTF8 str8_buf[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
                           UTF8 * str8_walk = str8_buf;
                           UTF8 * str8_end = str8_buf + 8;
-    
+
                           if (ConvertUTF32toUTF8 (&str32_walk, str32_end, &str8_walk, str8_end, 0) == 0)
                             {
                               const size_t len = str8_walk - str8_buf;
                               evbuffer_add (buf, str8_buf, len);
                               unescaped = true;
                             }
-    
+
                           in += 6;
                           break;
                         }
index 4b0dae8f147f6d1440677e2cf2b86d86b7209012..e0f6ca5532b382bbe86a199fa4ea1671c6748b65 100644 (file)
@@ -22,7 +22,7 @@
 
 #define __LIBTRANSMISSION_VARIANT_MODULE___
 #include "transmission.h"
-#include "ConvertUTF.h"  
+#include "ConvertUTF.h"
 #include "error.h"
 #include "file.h"
 #include "log.h"
index 0b2eb0ce53a82afb5a1584c001caf5f98ae2da34..4a4dbb13ab0c338a7626f2c5a6e0e3a8084a4593 100644 (file)
@@ -49,7 +49,7 @@ struct tr_variant_string
   size_t len;
   union { char buf[16]; const char * str; } str;
 };
-  
+
 
 /* these are PRIVATE IMPLEMENTATION details that should not be touched.
  * I'll probably change them just to break your code! HA HA HA!
@@ -200,7 +200,7 @@ tr_variantIsString (const tr_variant * b)
 bool         tr_variantGetStr          (const tr_variant * variant,
                                         const char      ** setme_str,
                                         size_t           * setme_len);
-                                                                 
+
 void         tr_variantInitStr         (tr_variant       * initme,
                                         const void       * str,
                                         int                str_len);
index 79b56a79396257895228fcd5b4941f097a681adb..4d12dec195097cbcb07e0f3987ac7f7d3a03c9fb 100644 (file)
@@ -275,7 +275,7 @@ tr_webRunImpl (tr_session         * session,
           while (session->web == NULL)
             tr_wait_msec (20);
         }
-      
+
       task = tr_new0 (struct tr_web_task, 1);
       task->session = session;
       task->torrentId = torrentId;
index 7339f8958ac7cd2afea1b7846ae88ba03fac352d..338424b4322a930e940d587c9155fddf5cdbb693 100644 (file)
@@ -285,7 +285,7 @@ on_content_changed (struct evbuffer                * buf,
              that will be needed when writing the block in a different thread */
           evbuffer_remove_buffer (task->content, data->content,
                                   block_size * completed);
-  
+
           tr_runInEventThread (w->session, write_block_func, data);
           task->blocks_done += completed;
         }
index fee49494202f4f6b6b511bfab4c795ad25597ecd..4b6800d9a61de48656ed800a3092c38bc99e09fd 100644 (file)
@@ -2,7 +2,7 @@ VOLUNTEERS WANTED
 
    - Qt developers and translators are needed
    - If you find a bug, please report it at http://trac.transmissionbt.com/
-    
+
 ABOUT TRANSMISSION-QT
 
    Transmission-qt is a GUI for Transmission loosely based on the GTK+ client.
@@ -42,4 +42,4 @@ BUILDING ON UNIX
    4. In the qt/ directory, type "make"
    5. In the qt/ directory, as root, type "INSTALL_ROOT=/usr make install"
       (Feel free to replace /usr with /usr/local or /opt or whatever)
+
index 6a88b50897aa4f769f3f9609ad3cb195ef03f33f..bfc8a778cc926a488477fd7eb4b248314c0ed49e 100644 (file)
--- a/qt/app.cc
+++ b/qt/app.cc
@@ -353,7 +353,7 @@ MyApp::onTorrentsAdded (const QSet<int>& torrents)
           onNewTorrentChanged (id);
 
           if (!tor->isSeed ())
-           connect (tor, SIGNAL (torrentCompleted (int)), this, SLOT (onTorrentCompleted (int)));
+            connect (tor, SIGNAL (torrentCompleted (int)), this, SLOT (onTorrentCompleted (int)));
         }
     }
 }
index df77095cb05465536718a539eee72ea5e8aebc2b..25ba50e2b29911d5bb8429d5fafa9a3a0c7d0538 100644 (file)
@@ -1,5 +1,5 @@
 DHT_LIBS = @DHT_LIBS_QT@
 LIBB64_LIBS = @LIBB64_LIBS_QT@
-LIBUTP_LIBS = @LIBUTP_LIBS_QT@ 
+LIBUTP_LIBS = @LIBUTP_LIBS_QT@
 LIBUPNP_LIBS = @LIBUPNP_LIBS_QT@
 LIBNATPMP_LIBS = @LIBNATPMP_LIBS_QT@
index b739c0de427d26f920b5ade4a630762f8ff5cc8b..d4b3fee869cd3e83100c3f49488c578ca4495a66 100644 (file)
@@ -195,7 +195,7 @@ FileTreeItem::progress () const
 QString
 FileTreeItem::sizeString () const
 {
-  QString str; 
+  QString str;
 
   if (myChildren.isEmpty())
     {
@@ -437,7 +437,7 @@ FileTreeModel::setEditable (bool editable)
 FileTreeItem *
 FileTreeModel::itemFromIndex (const QModelIndex& index) const
 {
-  return static_cast<FileTreeItem*>(index.internalPointer()); 
+  return static_cast<FileTreeItem*>(index.internalPointer());
 }
 
 QVariant
@@ -504,7 +504,7 @@ FileTreeModel::headerData (int column, Qt::Orientation orientation, int role) co
             break;
 
           case COL_PRIORITY:
-            data.setValue (tr("Priority")); 
+            data.setValue (tr("Priority"));
             break;
 
           default:
@@ -634,7 +634,7 @@ FileTreeModel::addFile (int                   fileIndex,
 
   item = findItemForFileIndex (fileIndex);
 
-  if (item) // this file is already in the tree, we've added this 
+  if (item) // this file is already in the tree, we've added this
     {
       QModelIndex indexWithChangedParents;
       while (!tokens.isEmpty())
index a81cd42f67c0cc796f732a38949b87123f0801bf..c054eff5bf1ffb9308540648b34db756a2bdc9c4 100644 (file)
@@ -614,7 +614,7 @@ PrefsDialog::createDownloadingTab ()
 
   hig->addSectionDivider ();
   hig->addSectionTitle (tr ("Download Queue"));
-    
+
     hig->addRow (tr ("Ma&ximum active downloads:"), spinBoxNew (Prefs::DOWNLOAD_QUEUE_SIZE, 1, INT_MAX, 1));
     hig->addRow (tr ("Downloads sharing data in the last &N minutes are active:"), spinBoxNew (Prefs::QUEUE_STALLED_MINUTES, 1, INT_MAX, 10));
 
index 43678f118d524b24e2e138d04a7971fd3ada906a..fe3bd3ac9ed264de11b682e0d6a6849888a0d6b9 100644 (file)
@@ -21,7 +21,7 @@ greaterThan(QT_MAJOR_VERSION, 4) {
 
 TRANSMISSION_TOP = ..
 
-include(config.pri) 
+include(config.pri)
 
 INCLUDEPATH = $${EVENT_TOP}/include $${INCLUDEPATH}
 INCLUDEPATH += $${TRANSMISSION_TOP}
index dc7218dba2f65f5072dfe1479c78dd15b515916e..c2d9d44e0b5760a0c94b3eda5e0dd1780b542978 100644 (file)
@@ -534,12 +534,12 @@ Session::sendTorrentRequest (const char * request, const QSet<int>& ids)
 }
 
 void Session::pauseTorrents    (const QSet<int>& ids) { sendTorrentRequest ("torrent-stop",      ids); }
-void Session::startTorrents    (const QSet<int>& ids) { sendTorrentRequest ("torrent-start",     ids); } 
+void Session::startTorrents    (const QSet<int>& ids) { sendTorrentRequest ("torrent-start",     ids); }
 void Session::startTorrentsNow (const QSet<int>& ids) { sendTorrentRequest ("torrent-start-now", ids); }
-void Session::queueMoveTop     (const QSet<int>& ids) { sendTorrentRequest ("queue-move-top",    ids); } 
-void Session::queueMoveUp      (const QSet<int>& ids) { sendTorrentRequest ("queue-move-up",     ids); } 
-void Session::queueMoveDown    (const QSet<int>& ids) { sendTorrentRequest ("queue-move-down",   ids); } 
-void Session::queueMoveBottom  (const QSet<int>& ids) { sendTorrentRequest ("queue-move-bottom", ids); } 
+void Session::queueMoveTop     (const QSet<int>& ids) { sendTorrentRequest ("queue-move-top",    ids); }
+void Session::queueMoveUp      (const QSet<int>& ids) { sendTorrentRequest ("queue-move-up",     ids); }
+void Session::queueMoveDown    (const QSet<int>& ids) { sendTorrentRequest ("queue-move-down",   ids); }
+void Session::queueMoveBottom  (const QSet<int>& ids) { sendTorrentRequest ("queue-move-bottom", ids); }
 
 void
 Session::refreshActiveTorrents ()
index 6744252c3ddd1a6da8feee860cfd3ac9508a99b1..0fac3752f7d63c6d8a0cc61312bcccac057099a4 100644 (file)
@@ -251,7 +251,7 @@ TorrentFilter::countTorrentsPerMode (int * setmeCounts) const
   std::fill_n (setmeCounts, static_cast<std::size_t>(FilterMode::NUM_MODES), 0);
 
   for (int row(0); ; ++row)
-    { 
+    {
       QModelIndex index (sourceModel()->index(row, 0));
       if (!index.isValid())
         break;
index b4f663def7ef1350ec4f4d8551e8e8b960d41724..7aa1affa827992bc06b3f5baae000904720a3b90 100644 (file)
@@ -219,7 +219,7 @@ Utils::isValidUtf8 (const char * s)
       for  (int m = 1; m < n; m++)
         if  ((c[m] & 0xc0) != 0x80)
           return false;
-    } 
+    }
 
   return true;
 }
index d82d37f5a05b132c7e9cad9bbb067917f0b21937..c76c7a374fec0f4804e7cd3863e8a301c8a6c143 100644 (file)
@@ -86,12 +86,12 @@ parseCommandLine (int argc, const char ** argv)
             break;
 
           case 's':
-            if (optarg) 
-              { 
+            if (optarg)
+              {
                 char * endptr = NULL;
                 piecesize_kib = strtoul (optarg, &endptr, 10);
                 if (endptr && *endptr=='M')
-                  piecesize_kib *= KiB; 
+                  piecesize_kib *= KiB;
               }
             break;