summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@instance-1.us-west1-a.c.linear-yen-352220.internal>2024-01-19 19:34:53 -0800
committerroot <root@instance-1.us-west1-a.c.linear-yen-352220.internal>2024-01-19 19:34:53 -0800
commit3c2c5bc4e323dfabe2bb7730d4e28aa6be15b2b4 (patch)
treefcfcbd0c23816d08dcaaaf6b51fc0a9e21b48407
parent67785e3ebff3d9d07bd95674099c84c2bb78c558 (diff)
parent218b817071d20891182446e7383f3f554f4ba4d3 (diff)
Merge remote-tracking branch 'upstream/master' into utp-supportHEADutp-support
-rw-r--r--configure.ac6
-rw-r--r--src/AbstractHttpServerResponseCommand.cc2
-rw-r--r--src/HttpResponse.h2
-rw-r--r--src/LogFactory.h4
-rw-r--r--src/NameResolver.h2
-rw-r--r--src/PortEventPoll.cc2
-rw-r--r--src/ServerStat.h2
-rw-r--r--src/WinTLSSession.cc2
-rw-r--r--src/getaddrinfo.c2
-rw-r--r--src/usage_text.h2
-rw-r--r--test/AllTest.cc2
-rw-r--r--test/FileTest.cc4
-rw-r--r--test/RequestTest.cc4
-rw-r--r--test/RpcMethodTest.cc4
-rw-r--r--test/SocketCoreTest.cc2
-rw-r--r--test/UriSplitTest.cc2
16 files changed, 22 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index 14b340f4..88778a33 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ case "$host" in
# available from <time.h> even without (un)helpful interference
# from <pthread.h>, and also defines __USE_MINGW_ANSI_STDIO.
EXTRACPPFLAGS="$EXTRACPPFLAGS -D_POSIX_C_SOURCE=1"
- # Build with ASLR (dynamicbase) and NX compatiblity (nxcompat)
+ # Build with ASLR (dynamicbase) and NX compatibility (nxcompat)
# Enable pie once upstream/binutils gets fixed to produce correct
# binaries with it.
EXTRALDFLAGS="$EXTRALDFLAGS -Wl,--dynamicbase -Wl,--nxcompat"
@@ -737,7 +737,7 @@ fi
# Checks for library functions.
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([0.18])
+AM_GNU_GETTEXT_VERSION([0.19])
AC_FUNC_ERROR_AT_LINE
AC_PROG_GCC_TRADITIONAL
@@ -749,7 +749,7 @@ AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_FUNC_FORK
AC_FUNC_STRTOD
-# Don't use AC_FUNC_MMAP becaue it fails on some platforms (e.g.,
+# Don't use AC_FUNC_MMAP because it fails on some platforms (e.g.,
# OpenWRT) which have mmap and it works in the way we use in aria2.
# Instead use mmap in AC_CHECK_FUNCS list.
AC_CHECK_FUNCS([__argz_count \
diff --git a/src/AbstractHttpServerResponseCommand.cc b/src/AbstractHttpServerResponseCommand.cc
index 80923ae9..928d5058 100644
--- a/src/AbstractHttpServerResponseCommand.cc
+++ b/src/AbstractHttpServerResponseCommand.cc
@@ -122,7 +122,7 @@ bool AbstractHttpServerResponseCommand::execute()
else {
if (timeoutTimer_.difference(global::wallclock()) >= 30_s) {
A2_LOG_INFO(fmt("CUID#%" PRId64
- " - HttpServer: Timeout while trasmitting response.",
+ " - HttpServer: Timeout while transmitting response.",
getCuid()));
return true;
}
diff --git a/src/HttpResponse.h b/src/HttpResponse.h
index 2caffaf1..c15dbaa3 100644
--- a/src/HttpResponse.h
+++ b/src/HttpResponse.h
@@ -66,7 +66,7 @@ public:
/**
* Returns filename.
- * If content-disposition header is privided in response header,
+ * If content-disposition header is provided in response header,
* this function returns the filename from it.
* If it is not there, returns the part of filename from the request URL.
*/
diff --git a/src/LogFactory.h b/src/LogFactory.h
index fc2f8f60..29131ba2 100644
--- a/src/LogFactory.h
+++ b/src/LogFactory.h
@@ -84,7 +84,7 @@ public:
static void setLogLevel(Logger::LEVEL level);
/**
- * Set log level to output to file by string represention of log
+ * Set log level to output to file by string representation of log
* level. Possible values are: debug, info, notice, warn, error
*/
static void setLogLevel(const std::string& level);
@@ -95,7 +95,7 @@ public:
static void setConsoleLogLevel(Logger::LEVEL level);
/**
- * Set log level to output to console by string represention of log
+ * Set log level to output to console by string representation of log
* level. Possible values are: debug, info, notice, warn, error
*/
static void setConsoleLogLevel(const std::string& level);
diff --git a/src/NameResolver.h b/src/NameResolver.h
index a389cc3f..e5c201ab 100644
--- a/src/NameResolver.h
+++ b/src/NameResolver.h
@@ -50,7 +50,7 @@ public:
NameResolver();
/**
- * Reolved addresses are pushed into addresses.
+ * Resolved addresses are pushed into addresses.
*/
void resolve(std::vector<std::string>& resolvedAddresses,
const std::string& hostname);
diff --git a/src/PortEventPoll.cc b/src/PortEventPoll.cc
index ecd7fbfa..0d3fbae1 100644
--- a/src/PortEventPoll.cc
+++ b/src/PortEventPoll.cc
@@ -103,7 +103,7 @@ void PortEventPoll::poll(const struct timeval& tv)
int res;
uint_t nget = 1;
// If port_getn was interrupted by signal, it can consume events but
- // not updat nget!. For this very annoying bug, we have to check
+ // not update nget!. For this very annoying bug, we have to check
// actually event is filled or not.
portEvents_[0].portev_user = (void*)-1;
res = port_getn(port_, portEvents_, portEventsSize_, &nget, &timeout);
diff --git a/src/ServerStat.h b/src/ServerStat.h
index 3c73a04d..dede65f9 100644
--- a/src/ServerStat.h
+++ b/src/ServerStat.h
@@ -91,7 +91,7 @@ public:
// This method doesn't update _lastUpdate.
void setStatus(STATUS status);
- // status should be one of the followings: "OK", "ERROR".
+ // status should be one of the following: "OK", "ERROR".
// Giving other string will not change the status of this object.
// This method doesn't update _lastUpdate.
void setStatus(const std::string& status);
diff --git a/src/WinTLSSession.cc b/src/WinTLSSession.cc
index 123780e7..7e6dd764 100644
--- a/src/WinTLSSession.cc
+++ b/src/WinTLSSession.cc
@@ -440,7 +440,7 @@ ssize_t WinTLSSession::readData(void* data, size_t len)
// Can be filled from decBuffer entirely?
if (decBuf_.size() >= len) {
- A2_LOG_DEBUG("WinTLS: Fullfilling req from buffer");
+ A2_LOG_DEBUG("WinTLS: Fulfilling req from buffer");
memcpy(data, decBuf_.data(), len);
decBuf_.eat(len);
return len;
diff --git a/src/getaddrinfo.c b/src/getaddrinfo.c
index 7c80dcf2..5925af27 100644
--- a/src/getaddrinfo.c
+++ b/src/getaddrinfo.c
@@ -293,7 +293,7 @@ static int is_address(s) const char* s;
}
/*
- * Calcurate length of the string `s', where `s' is set by
+ * Calculate length of the string `s', where `s' is set by
* sprintf(s, "%d", n).
*/
static int itoa_length(n)
diff --git a/src/usage_text.h b/src/usage_text.h
index 48684565..08715436 100644
--- a/src/usage_text.h
+++ b/src/usage_text.h
@@ -98,7 +98,7 @@
#define TEXT_PROXY_METHOD \
_(" --proxy-method=METHOD Set the method to use in proxy request.")
#define TEXT_REFERER \
- _(" --referer=REFERER Set an http referrrer (Referer). This affects\n" \
+ _(" --referer=REFERER Set an http referrer (Referer). This affects\n" \
" all http/https downloads. If \"*\" is given,\n" \
" the download URI is also used as the referrer.\n" \
" This may be useful when used together with\n" \
diff --git a/test/AllTest.cc b/test/AllTest.cc
index f869e55c..357cebc5 100644
--- a/test/AllTest.cc
+++ b/test/AllTest.cc
@@ -26,7 +26,7 @@ int main(int argc, char* argv[])
// By default, SocketCore uses AF_UNSPEC for getaddrinfo hints to
// resolve address. Sometime SocketCore::bind() and
- // SocketCore::establishConnection() use difference protocl family
+ // SocketCore::establishConnection() use difference protocol family
// and latter cannot connect to former. To avoid this situation, we
// limit protocol family to AF_INET for unit tests.
aria2::SocketCore::setProtocolFamily(AF_INET);
diff --git a/test/FileTest.cc b/test/FileTest.cc
index ca78217e..e73daa56 100644
--- a/test/FileTest.cc
+++ b/test/FileTest.cc
@@ -129,7 +129,7 @@ void FileTest::testMkdir()
CPPUNIT_ASSERT(d.mkdirs());
CPPUNIT_ASSERT(d.exists());
- // this test failes because d.mkdir returns false when the directory is
+ // this test fails because d.mkdir returns false when the directory is
// already exists.
CPPUNIT_ASSERT(!d.mkdirs());
}
@@ -147,7 +147,7 @@ void FileTest::testMkdir()
CPPUNIT_ASSERT(d.mkdirs());
CPPUNIT_ASSERT(nd.exists());
- // this test failes because d.mkdir returns false when the directory is
+ // this test fails because d.mkdir returns false when the directory is
// already exists.
CPPUNIT_ASSERT(!d.mkdirs());
}
diff --git a/test/RequestTest.cc b/test/RequestTest.cc
index 24abf91f..1422847e 100644
--- a/test/RequestTest.cc
+++ b/test/RequestTest.cc
@@ -74,7 +74,7 @@ void RequestTest::testSetUri2()
CPPUNIT_ASSERT(v);
- // referer is unchaged
+ // referer is unchanged
CPPUNIT_ASSERT_EQUAL(std::string("http://aria.rednoah.com:8080"),
req.getReferer());
CPPUNIT_ASSERT_EQUAL(std::string("http"), req.getProtocol());
@@ -124,7 +124,7 @@ void RequestTest::testRedirectUri()
// See redirect count is incremented.
CPPUNIT_ASSERT_EQUAL(2, req.getRedirectCount());
- // Give abosulute path
+ // Give absolute path
CPPUNIT_ASSERT(req.redirectUri("/abspath/to/file"));
CPPUNIT_ASSERT_EQUAL(std::string("http://aria.rednoah.co.jp/abspath/to/file"),
req.getCurrentUri());
diff --git a/test/RpcMethodTest.cc b/test/RpcMethodTest.cc
index 44bae5fe..3fbd726a 100644
--- a/test/RpcMethodTest.cc
+++ b/test/RpcMethodTest.cc
@@ -875,7 +875,7 @@ void RpcMethodTest::testTellWaiting()
CPPUNIT_ASSERT_EQUAL(0, res.code);
resParams = downcast<List>(res.param);
CPPUNIT_ASSERT_EQUAL((size_t)4, resParams->size());
- // nagative offset and normalized offset < 0
+ // negative offset and normalized offset < 0
req = RpcRequest(TellWaitingRpcMethod::getMethodName(), List::g());
req.params->append(Integer::g(-5));
req.params->append(Integer::g(100));
@@ -883,7 +883,7 @@ void RpcMethodTest::testTellWaiting()
CPPUNIT_ASSERT_EQUAL(0, res.code);
resParams = downcast<List>(res.param);
CPPUNIT_ASSERT_EQUAL((size_t)0, resParams->size());
- // nagative offset and normalized offset == 0
+ // negative offset and normalized offset == 0
req = RpcRequest(TellWaitingRpcMethod::getMethodName(), List::g());
req.params->append(Integer::g(-4));
req.params->append(Integer::g(100));
diff --git a/test/SocketCoreTest.cc b/test/SocketCoreTest.cc
index 443ca73c..666056e0 100644
--- a/test/SocketCoreTest.cc
+++ b/test/SocketCoreTest.cc
@@ -227,7 +227,7 @@ void SocketCoreTest::testVerifyHostname()
CPPUNIT_ASSERT(net::verifyHostname("::1", dnsNames, ipAddrs, commonName));
}
{
- // If iPAddress is privided, don't match with commonName
+ // If iPAddress is provided, don't match with commonName
std::vector<std::string> dnsNames, ipAddrs;
unsigned char binAddr[16];
size_t len;
diff --git a/test/UriSplitTest.cc b/test/UriSplitTest.cc
index 091b8d0b..53d5804b 100644
--- a/test/UriSplitTest.cc
+++ b/test/UriSplitTest.cc
@@ -82,7 +82,7 @@ void UriSplitTest::testUriSplit()
// According to RFC 3986, @ in userinfo is illegal. But many people
// have e-mail account as username and don't understand
- // percent-encoding and keep getting erros putting it in URI in
+ // percent-encoding and keep getting errors putting it in URI in
// unecoded form. Because of this, we support @ in username.
uri = "http://user@foo.com:pass@aria2.sf.net/path/";
memset(&res, 0, sizeof(res));