Skip to content

Commit

Permalink
Trim trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
a1346054 committed Sep 2, 2021
1 parent 12d405f commit f03da89
Show file tree
Hide file tree
Showing 28 changed files with 128 additions and 128 deletions.
2 changes: 1 addition & 1 deletion doc/manual/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# log.open_file = "log name", "file path"

log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid))
log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid))

A newly opened log file is not connected to any logging events.

Expand Down
2 changes: 1 addition & 1 deletion doc/manual/logging.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ \subsection{Opening log files}
\begin{verbatim}
# log.open_file = "log name", "file path"
log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid))
log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid))
\end{verbatim}

A newly opened log file is not connected to any logging events.
Expand Down
18 changes: 9 additions & 9 deletions doc/old/rtorrent.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" This manpage has been automatically generated by docbook2man
.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng <[email protected]>.
.TH "RTORRENT" "1" "14 May 2009" "BitTorrent client for ncurses" ""

Expand Down Expand Up @@ -220,14 +220,14 @@ default, encryption is disabled, equivalent to specifying the option
\fBnone\fR\&. Alternatively, any number of the following
options may be specified:

\fBallow_incoming\fR (allow incoming encrypted connections),
\fBallow_incoming\fR (allow incoming encrypted connections),
\fBtry_outgoing\fR (use encryption for outgoing connections),
\fBrequire\fR (disable unencrypted handshakes),
\fBrequire\fR (disable unencrypted handshakes),
\fBrequire_RC4\fR (also disable plaintext transmission after the
initial encrypted handshake),
\fBenable_retry\fR (if the initial outgoing connection fails, retry
with encryption turned on if it was off or off if it was on),
\fBprefer_plaintext\fR (choose plaintext when peer offers a choice
with encryption turned on if it was off or off if it was on),
\fBprefer_plaintext\fR (choose plaintext when peer offers a choice
between plaintext transmission and RC4 encryption, otherwise RC4 will be used).
.TP
\fBpeer_exchange = \fIyes | no\fB\fR
Expand Down Expand Up @@ -294,7 +294,7 @@ Stop torrents when they reach the given upload ratio
upload amount of this many bytes as well. If the optional
\fBmax_ratio\fR is given, stop the torrent
when reaching this ratio regardless of the total upload
amount. Exclude certain torrent by pressing
amount. Exclude certain torrent by pressing
\fBShift+I\fR in the downlist list.
Use with the \fBschedule\fR option.
.TP
Expand Down Expand Up @@ -408,7 +408,7 @@ Set the UDP listen port for DHT. Defaults to 6881.
.TP
\fBdht_add_node = \fIhost[:port]\fB\fR
Not intended for use in the configuration file but as one-time option in the
client or on the command line to bootstrap an empty DHT node table. Contacts
client or on the command line to bootstrap an empty DHT node table. Contacts
the given node and attempts to bootstrap from it if it replies.
The port is optional, with port 6881 being used by default.
.TP
Expand Down
16 changes: 8 additions & 8 deletions doc/old/rtorrent.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<refmiscinfo class="title">BitTorrent client for ncurses</refmiscinfo>
</refmeta>


<refnamediv>
<refname>rtorrent</refname>
<refpurpose>a BitTorrent client for ncurses</refpurpose>
</refnamediv>


<refsynopsisdiv>
<cmdsynopsis>
Expand All @@ -28,7 +28,7 @@
<arg choice="opt" rep="repeat">URL | FILE</arg>
</cmdsynopsis>
</refsynopsisdiv>


<refsect1>
<title>DESCRIPTION</title>
Expand Down Expand Up @@ -494,14 +494,14 @@ options may be specified:

</para><para>

<emphasis>allow_incoming</emphasis> (allow incoming encrypted connections),
<emphasis>allow_incoming</emphasis> (allow incoming encrypted connections),
<emphasis>try_outgoing</emphasis> (use encryption for outgoing connections),
<emphasis>require</emphasis> (disable unencrypted handshakes),
<emphasis>require</emphasis> (disable unencrypted handshakes),
<emphasis>require_RC4</emphasis> (also disable plaintext transmission after the
initial encrypted handshake),
<emphasis>enable_retry</emphasis> (if the initial outgoing connection fails, retry
with encryption turned on if it was off or off if it was on),
<emphasis>prefer_plaintext</emphasis> (choose plaintext when peer offers a choice
with encryption turned on if it was off or off if it was on),
<emphasis>prefer_plaintext</emphasis> (choose plaintext when peer offers a choice
between plaintext transmission and RC4 encryption, otherwise RC4 will be used).

</para></listitem>
Expand Down Expand Up @@ -752,7 +752,7 @@ Set the UDP listen port for DHT. Defaults to 6881.
<term>dht_add_node = <replaceable>host[:port]</replaceable></term>
<listitem><para>
Not intended for use in the configuration file but as one-time option in the
client or on the command line to bootstrap an empty DHT node table. Contacts
client or on the command line to bootstrap an empty DHT node table. Contacts
the given node and attempts to bootstrap from it if it replies.
The port is optional, with port 6881 being used by default.
</para></listitem>
Expand Down
4 changes: 2 additions & 2 deletions doc/rtorrent_fast_resume.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@
foreach my $f (0..$#files) {
die "$d$files[$f] not found.\n" unless -e "$d$files[$f]";
my $mtime = (stat "$d$files[$f]")[9];

# Compute number of chunks per file
my $fsize = (exists $t->{info}{files}) ? $t->{info}{files}[$f]{length} : 1;
my $fchunks = ($pmod ? 1 : 0);
if ($pmod >= $fsize) { ($fsize, $pmod ) = (0, $pmod-$fsize); }
else { ($pmod, $fsize) = (0, $fsize-$pmod); }
$fchunks += ceil($fsize / $psize);
$pmod ||= $psize - ($fsize % $psize);

$t->{libtorrent_resume}{files}[$f] = {
priority => 0, # Don't download; we already have the file, so don't clobber it!
mtime => $mtime,
Expand Down
10 changes: 5 additions & 5 deletions rak/address_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down Expand Up @@ -60,10 +60,10 @@ class address_info {

int socket_type() const { return m_addrinfo.ai_socktype; }
void set_socket_type(int t) { m_addrinfo.ai_socktype = t; }

int protocol() const { return m_addrinfo.ai_protocol; }
void set_protocol(int p) { m_addrinfo.ai_protocol = p; }

size_t length() const { return m_addrinfo.ai_addrlen; }

socket_address* address() { return reinterpret_cast<socket_address*>(m_addrinfo.ai_addr); }
Expand All @@ -89,7 +89,7 @@ address_info::get_address_info(const char* node, int pfamily, int stype, address
hints.clear();
hints.set_family(pfamily);
hints.set_socket_type(stype);

return ::getaddrinfo(node, NULL, hints.c_addrinfo(), reinterpret_cast<addrinfo**>(ai));
}

Expand Down
8 changes: 4 additions & 4 deletions rak/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down Expand Up @@ -50,7 +50,7 @@ for_each_pre(_InputIter __first, _InputIter __last, _Function __f) {

while (__first != __last) {
__tmp = __first++;

__f(*__tmp);
}

Expand Down Expand Up @@ -166,7 +166,7 @@ inline int popcount_wrapper(T t) {
#else
#error __builtin_popcount not found.
unsigned int count = 0;

while (t) {
count += t & 0x1;
t >> 1;
Expand Down
4 changes: 2 additions & 2 deletions rak/allocators.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down
6 changes: 3 additions & 3 deletions rak/error_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down Expand Up @@ -55,7 +55,7 @@ class error_number {
static const int e_nomem = ENOMEM;
static const int e_notdir = ENOTDIR;
static const int e_isdir = EISDIR;

static const int e_intr = EINTR;

error_number() : m_errno(0) {}
Expand Down
4 changes: 2 additions & 2 deletions rak/file_stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down
4 changes: 2 additions & 2 deletions rak/fs_stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down
26 changes: 13 additions & 13 deletions rak/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down Expand Up @@ -288,12 +288,12 @@ struct on_t : public std::unary_function<typename Src::argument_type, typename D
Dest m_dest;
Src m_src;
};

template <typename Src, typename Dest>
inline on_t<Src, Dest>
on(Src s, Dest d) {
return on_t<Src, Dest>(s, d);
}
}

template <typename Src, typename Dest>
struct on2_t : public std::binary_function<typename Src::argument_type, typename Dest::second_argument_type, typename Dest::result_type> {
Expand All @@ -308,12 +308,12 @@ struct on2_t : public std::binary_function<typename Src::argument_type, typename
Dest m_dest;
Src m_src;
};

template <typename Src, typename Dest>
inline on2_t<Src, Dest>
on2(Src s, Dest d) {
return on2_t<Src, Dest>(s, d);
}
}

// Creates a functor for accessing a member.
template <typename Class, typename Member>
Expand Down Expand Up @@ -470,7 +470,7 @@ class ptr_fun0 {
bool is_valid() const { return m_function; }

Ret operator () () { return m_function(); }

private:
Function m_function;
};
Expand All @@ -487,7 +487,7 @@ class mem_fun0 {
bool is_valid() const { return m_object; }

Ret operator () () { return (m_object->*m_function)(); }

private:
Object* m_object;
Function m_function;
Expand All @@ -505,7 +505,7 @@ class const_mem_fun0 {
bool is_valid() const { return m_object; }

Ret operator () () const { return (m_object->*m_function)(); }

private:
const Object* m_object;
Function m_function;
Expand All @@ -523,7 +523,7 @@ class mem_fun1 {
bool is_valid() const { return m_object; }

Ret operator () (Arg1 a1) { return (m_object->*m_function)(a1); }

private:
Object* m_object;
Function m_function;
Expand All @@ -541,7 +541,7 @@ class const_mem_fun1 {
bool is_valid() const { return m_object; }

Ret operator () (Arg1 a1) const { return (m_object->*m_function)(a1); }

private:
const Object* m_object;
Function m_function;
Expand All @@ -563,7 +563,7 @@ class mem_fun2 : public std::binary_function<Arg1, Arg2, Ret> {
const object_type* object() const { return m_object; }

Ret operator () (Arg1 a1, Arg2 a2) { return (m_object->*m_function)(a1, a2); }

private:
Object* m_object;
Function m_function;
Expand All @@ -581,7 +581,7 @@ class mem_fun3 {
bool is_valid() const { return m_object; }

Ret operator () (Arg1 a1, Arg2 a2, Arg3 a3) { return (m_object->*m_function)(a1, a2, a3); }

private:
Object* m_object;
Function m_function;
Expand Down
Loading

0 comments on commit f03da89

Please sign in to comment.