Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling mistakes #1183

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ necessary. The man page "doc/rtorrent.1" must be generated with
"docbook2man rtorrent.1.xml" if it is missing.

Note that rtorrent follows the development of libtorrent closely, and
thus the versions must be in sync. This should not be nessesary in the
thus the versions must be in sync. This should not be necessary in the
future, when the library API stabilizes.

USAGE
4 changes: 2 additions & 2 deletions doc/faq.xml
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
torrent file and add it manually. This usually happens when
the torrent link uses some form of redirection that libcurl
does not automatically redirect. If the failure still happens,
make sure the file is infact an uncorrupted torrent.
make sure the file is in fact an uncorrupted torrent.
</para></answer>
</qandaentry>

@@ -93,7 +93,7 @@
When I try downloading a torrent the client aborts (SIGABRT), what should I do?
</para></question>
<answer><para>
Make sure you arn't using "-fomit-frame-pointer" when
Make sure you aren't using "-fomit-frame-pointer" when
compiling libtorrent and rtorrent, this is known to produce
bad code for C++ exception handling. If this doesn't help, run
the client in gdb and use "bt -20" to get a backtrace. Send
2 changes: 1 addition & 1 deletion doc/manual/logging.md
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ Each log handle can be added to multiple different logging events.
"debug"

The above events receive logging events from all the sub-groups
displayed below, and each event also reciving events from the event
displayed below, and each event also receiving events from the event
above in importance.

Thus some high-volume sub-group events such as “tracker\_debug” are not
2 changes: 1 addition & 1 deletion doc/manual/logging.tex
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ \subsection{Logging events}
\end{verbatim}

The above events receive logging events from all the sub-groups
displayed below, and each event also reciving events from the event
displayed below, and each event also receiving events from the event
above in importance.

Thus some high-volume sub-group events such as ``tracker\_debug'' are
2 changes: 1 addition & 1 deletion rak/algorithm.h
Original file line number Diff line number Diff line change
@@ -177,7 +177,7 @@ inline int popcount_wrapper(T t) {
}

// Get the median of an unordered set of numbers of arbitrary
// type by modifing the underlying dataset
// type by modifying the underlying dataset
template <typename T = double, typename _InputIter>
T median(_InputIter __first, _InputIter __last) {
T __med;
2 changes: 1 addition & 1 deletion rak/functional.h
Original file line number Diff line number Diff line change
@@ -456,7 +456,7 @@ bind2nd(const Operation& op, const Type& val) {

// Lightweight callback function including pointer to object. Should
// be replaced by TR1 stuff later. Requires an object to bind, instead
// of using a seperate functor for that.
// of using a separate functor for that.

template <typename Ret>
class ptr_fun0 {
2 changes: 1 addition & 1 deletion rak/partial_queue.h
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ class partial_queue {
// check how full we are in the lower parts so the caller knows when
// he can stop searching.
//
// Though propably not needed, as we must continue til the first
// Though probably not needed, as we must continue til the first
// layer is full.

size_type max_size() const { return m_maxLayerSize * num_layers; }
4 changes: 2 additions & 2 deletions rak/socket_address.h
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ class socket_address {

std::string pretty_address_str() const;

// Attemts to set it as an inet, then an inet6 address. It will
// Attests to set it as an inet, then an inet6 address. It will
// never set anything but net addresses, no local/unix.
bool set_address_str(const std::string& a) { return set_address_c_str(a.c_str()); }
bool set_address_c_str(const char* a);
@@ -123,7 +123,7 @@ class socket_address {
const sockaddr_in6* c_sockaddr_inet6() const { return &m_sockaddrInet6; }

// Copy a socket address which has the length 'length. Zero out any
// extranous bytes and ensure it does not go beyond the size of this
// extraneous bytes and ensure it does not go beyond the size of this
// struct.
void copy(const socket_address& src, size_t length);
void copy_sockaddr(const sockaddr* src);
2 changes: 1 addition & 1 deletion rak/string_manip.h
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ Sequence trim_classic(const Sequence& seq) {
return trim_begin_classic(trim_end_classic(seq));
}

// Consider rewritting such that m_seq is replaced by first/last.
// Consider rewriting such that m_seq is replaced by first/last.
template <typename Sequence>
class split_iterator_t {
public:
2 changes: 1 addition & 1 deletion scripts/checks.m4
Original file line number Diff line number Diff line change
@@ -457,7 +457,7 @@ AC_DEFUN([TORRENT_CHECK_PTHREAD_SETNAME_NP], [
pthread_t t;
pthread_setname_np(t, "foo");
]])],[
AC_DEFINE(HAS_PTHREAD_SETNAME_NP_GENERIC, 1, The function to set pthread name has a pthread_t argumet.)
AC_DEFINE(HAS_PTHREAD_SETNAME_NP_GENERIC, 1, The function to set pthread name has a pthread_t argument.)
AC_MSG_RESULT(generic)
],[
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2 changes: 1 addition & 1 deletion scripts/common.m4
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ AC_DEFUN([TORRENT_WITH_SYSROOT], [
AC_DEFUN([TORRENT_ENABLE_ARCH], [
AC_ARG_ENABLE(arch,
AS_HELP_STRING([--enable-arch=ARCH],
[comma seprated list of architectures to compile for]),
[comma separated list of architectures to compile for]),
[
AC_MSG_CHECKING(for target architectures)

4 changes: 2 additions & 2 deletions src/command_ui.cc
Original file line number Diff line number Diff line change
@@ -586,7 +586,7 @@ cmd_view_persistent(const torrent::Object::string_type& args) {
core::View* view = *control->view_manager()->find_throw(args);

if (!view->get_filter().is_empty() || !view->event_added().is_empty() || !view->event_removed().is_empty())
throw torrent::input_error("Cannot set modified views as persitent.");
throw torrent::input_error("Cannot set modified views as persistent.");

view->set_filter("d.views.has=" + args);
view->set_event_added("d.views.push_back_unique=" + args);
@@ -862,7 +862,7 @@ initialize_command_ui() {
CMD2_ANY("or", &apply_or);

// A temporary command for handling stuff until we get proper
// support for seperation of commands and literals.
// support for separation of commands and literals.
CMD2_ANY("branch", std::bind(&apply_if, std::placeholders::_1, std::placeholders::_2, 1));

CMD2_ANY_LIST("less", &apply_less);
6 changes: 3 additions & 3 deletions src/core/download_list.cc
Original file line number Diff line number Diff line change
@@ -315,7 +315,7 @@ DownloadList::close_throw(Download* download) {

// Save the torrent on close, this covers shutdown and if a torrent
// is manually closed which would clear the progress data. For
// better crash protection, save regulary in addition to this.
// better crash protection, save regularly in addition to this.
//
// Used to be in pause, but this was wrong for rehashing etc.
//
@@ -512,7 +512,7 @@ DownloadList::hash_done(Download* download) {
// downloaded to ensure something was transferred, thus we didn't
// just hash an already completed torrent with lacking session data?
//
// Perhaps we should use a seperate variable or state, and check
// Perhaps we should use a separate variable or state, and check
// that. Thus we can bork the download if the hash check doesn't
// confirm all the data, avoiding large BW usage on f.ex. the
// ReiserFS bug with >4GB files.
@@ -675,7 +675,7 @@ DownloadList::confirm_finished(Download* download) {
// See #1292.
//
// Just reset the value for the moment. If a torrent finishes while
// others are hashing, or some other situtation that causes resume
// others are hashing, or some other situation that causes resume
// flag to change could cause the state to be invalid.
//
// TODO: Add a check when setting the flags to see if the torrent is
4 changes: 2 additions & 2 deletions src/core/manager.cc
Original file line number Diff line number Diff line change
@@ -392,7 +392,7 @@ Manager::try_create_download_from_meta_download(torrent::Object* bencode, const
f->set_print_log(meta.get_key_value("print_log"));
f->slot_finished(std::bind(&rak::call_delete_func<core::DownloadFactory>, f));

// Bit of a waste to create the bencode repesentation here
// Bit of a waste to create the bencode representation here
// only to have the DownloadFactory decode it.
std::stringstream s;
s.imbue(std::locale::classic());
@@ -482,7 +482,7 @@ Manager::try_create_download_expand(const std::string& uri, int flags, command_l

// DownloadList's hashing related functions don't actually start the
// hashing, it only reacts to events. This functions checks the
// hashing view and starts hashing if nessesary.
// hashing view and starts hashing if necessary.
void
Manager::receive_hashing_changed() {
bool foundHashing = std::find_if(m_hashingView->begin_visible(), m_hashingView->end_visible(),
2 changes: 1 addition & 1 deletion src/core/view.cc
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ View::filter() {
if (m_name == "started" || m_name == "stopped")
return;

// Parition the list in two steps so we know which elements changed.
// Partition the list in two steps so we know which elements changed.
iterator splitVisible = std::stable_partition(begin_visible(), end_visible(), view_downloads_filter(m_filter, m_temp_filter));
iterator splitFiltered = std::stable_partition(begin_filtered(), end_filtered(), view_downloads_filter(m_filter, m_temp_filter));

4 changes: 2 additions & 2 deletions src/core/view.h
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ class View : private std::vector<Download*> {
void set_sort_new(const torrent::Object& s) { m_sortNew = s; }
void set_sort_current(const torrent::Object& s) { m_sortCurrent = s; }

// Need to explicity trigger filtering.
// Need to explicitly trigger filtering.
void filter();
void filter_by(const torrent::Object& condition, base_type& result);
void filter_download(core::Download* download);
@@ -146,7 +146,7 @@ class View : private std::vector<Download*> {
rak::timer last_changed() const { return m_lastChanged; }
void set_last_changed(const rak::timer& t = ::cachedTime) { m_lastChanged = t; }

// Don't connect any slots until after initialize else it get's
// Don't connect any slots until after initialize else it gets
// triggered when adding the Download's in DownloadList.
signal_void& signal_changed() { return m_signal_changed; }

2 changes: 1 addition & 1 deletion src/core/view_manager.cc
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ ViewManager::sort(const std::string& name, uint32_t timeout) {
if ((*viewItr)->last_changed() + rak::timer::from_seconds(timeout) > cachedTime)
return;

// Should we rename sort, or add a seperate function?
// Should we rename sort, or add a separate function?
(*viewItr)->filter();
(*viewItr)->sort();
}
4 changes: 2 additions & 2 deletions src/display/canvas.h
Original file line number Diff line number Diff line change
@@ -82,8 +82,8 @@ class Canvas {
chtype bl, chtype br) { if (!m_isDaemon) { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); } }

// The format string is non-const, but that will not be a problem
// since the string shall always be a C string choosen at
// compiletime. Might cause extra copying of the string?
// since the string shall always be a C string chosen at
// compile time. Might cause extra copying of the string?

void print(const char* str, ...);
void print(unsigned int x, unsigned int y, const char* str, ...);
2 changes: 1 addition & 1 deletion src/display/window.h
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ class Window {
bool is_width_dynamic() const { return m_maxWidth > m_minWidth; }
bool is_height_dynamic() const { return m_maxHeight > m_minHeight; }

// Do not call mark_dirty() from withing redraw() as it may cause
// Do not call mark_dirty() from within redraw() as it may cause
// infinite looping in the display scheduler.
bool is_dirty() { return m_taskUpdate.is_queued(); }
void mark_dirty() { if (!is_active()) return; m_slotSchedule(this, cachedTime); }
2 changes: 1 addition & 1 deletion src/display/window_file_list.cc
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
namespace display {

// Don't really like the direction of the element dependency, but
// don't really feel like making a seperate class for containing the
// don't really feel like making a separate class for containing the
// necessary information.
WindowFileList::WindowFileList(const ui::ElementFileList* element) :
Window(new Canvas, 0, 0, 0, extent_full, extent_full),
4 changes: 2 additions & 2 deletions src/input/path_input.cc
Original file line number Diff line number Diff line change
@@ -108,8 +108,8 @@ PathInput::receive_do_complete() {
std::string base = rak::make_base<std::string>(r.first, r.second, rak::const_mem_ref(&utils::directory_entry::d_name));

// Clear the path after the cursor to make this code cleaner. It's
// not really nessesary to add the complexity just because someone
// might start tab-completeing in the middle of a path.
// not really necessary to add the complexity just because someone
// might start tab-completing in the middle of a path.
str().resize(dirEnd);
str().insert(dirEnd, base);

2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
@@ -595,7 +595,7 @@ handle_sigbus(int signum, siginfo_t* sa, void* ptr) {

void
do_panic(int signum) {
// Use the default signal handler in the future to avoid infinit
// Use the default signal handler in the future to avoid infinite
// loops.
SignalHandler::set_default(signum);
display::Canvas::cleanup();
2 changes: 1 addition & 1 deletion src/rpc/command_scheduler_item.cc
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ CommandSchedulerItem::enable(rak::timer t) {

// If 'first' is zero then we execute the task
// immediately. ''interval()'' will not return zero so we never end
// up in an infinit loop.
// up in an infinite loop.
m_timeScheduled = t;
priority_queue_insert(&taskScheduler, &m_task, t);
}
2 changes: 1 addition & 1 deletion src/rpc/exec_file.cc
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ const int ExecFile::flag_background;

int
ExecFile::execute(const char* file, char* const* argv, int flags) {
// Write the execued command and its parameters to the log fd.
// Write the executed command and its parameters to the log fd.
int __UNUSED result;

if (m_logFd != -1) {
4 changes: 2 additions & 2 deletions src/rpc/parse.cc
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ parse_object(const char* first, const char* last, torrent::Object* dest, bool (*
}

if (depth > 3)
throw torrent::input_error("Max 3 parantheses per object allowed.");
throw torrent::input_error("Max 3 parentheses per object allowed.");

*dest = torrent::Object::create_dict_key();
dest->set_flags(torrent::Object::flag_function << (depth - 1));
@@ -216,7 +216,7 @@ parse_object(const char* first, const char* last, torrent::Object* dest, bool (*
}

if (depth != 0)
throw torrent::input_error("Parantheses mismatch.");
throw torrent::input_error("Parentheses mismatch.");

return first;

2 changes: 1 addition & 1 deletion src/rpc/xmlrpc.cc
Original file line number Diff line number Diff line change
@@ -553,7 +553,7 @@ XmlRpc::insert_command(const char* name, const char* parm, const char* doc) {
&xmlrpc_call_command, const_cast<char*>(name), parm, doc);

if (localEnv.fault_occurred)
throw torrent::internal_error("Fault occured while inserting xmlrpc call.");
throw torrent::internal_error("Fault occurred while inserting xmlrpc call.");

xmlrpc_env_clean(&localEnv);
}
2 changes: 1 addition & 1 deletion src/thread_base.cc
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@
#include "control.h"
#include "core/manager.h"

// Temporarly injected into config.h.
// Temporarily injected into config.h.
/* temp hack */
//#define lt_cacheline_aligned __attribute__((__aligned__(128)))

2 changes: 1 addition & 1 deletion src/utils/list_focus.h
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ class ListFocus {

ListFocus(base_type* b = NULL) : m_base(b) { if (b) m_focus = b->end(); }

// Convinience functions, would have added more through using, but
// Convenience functions, would have added more through using, but
// can't.
iterator begin() { return m_base->begin(); }
iterator end() { return m_base->end(); }