mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix typos.
Typos found with codespell.
Please keep in mind that this should have impact on actual code
and must be carefully evaluated:
src/core/or/lttng_circuit.inc
- ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER)
+ ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
This commit is contained in:
committed by
David Goulet
parent
e2d3c9c5f8
commit
4a0cd79588
@@ -33,7 +33,7 @@ mod internal {
|
||||
/// A wrapper around OpenSSL's RNG.
|
||||
pub struct TorRng {
|
||||
// This private, zero-length field forces the struct to be treated the
|
||||
// same as its opaque C couterpart.
|
||||
// same as its opaque C counterpart.
|
||||
_unused: [u8; 0],
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ mod internal {
|
||||
/// obtained from the operating system.
|
||||
pub struct TorStrongestRng {
|
||||
// This private, zero-length field forces the struct to be treated the
|
||||
// same as its opaque C couterpart.
|
||||
// same as its opaque C counterpart.
|
||||
_unused: [u8; 0],
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -79,7 +79,7 @@ const N_COMMON_DIGEST_ALGORITHMS: usize = DIGEST_SHA256 as usize + 1;
|
||||
#[allow(non_camel_case_types)]
|
||||
struct crypto_digest_t {
|
||||
// This private, zero-length field forces the struct to be treated the same
|
||||
// as its opaque C couterpart.
|
||||
// as its opaque C counterpart.
|
||||
_unused: [u8; 0],
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ struct crypto_digest_t {
|
||||
#[allow(non_camel_case_types)]
|
||||
struct crypto_xof_t {
|
||||
// This private, zero-length field forces the struct to be treated the same
|
||||
// as its opaque C couterpart.
|
||||
// as its opaque C counterpart.
|
||||
_unused: [u8; 0],
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ impl CryptoDigest {
|
||||
/// * `crypto_digest256_new`
|
||||
/// * `crypto_digest512_new`
|
||||
/// * `tor_malloc` (called by `crypto_digest256_new`, but we make
|
||||
/// assumptions about its behvaiour and return values here)
|
||||
/// assumptions about its behaviour and return values here)
|
||||
pub fn new(algorithm: Option<DigestAlgorithm>) -> CryptoDigest {
|
||||
let digest: *mut crypto_digest_t;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ pub fn allocate_and_copy_string(src: &str) -> *mut c_char {
|
||||
unsafe { ptr::copy_nonoverlapping(bytes.as_ptr(), dest, size) };
|
||||
|
||||
// set the last byte as null, using the ability to index into a slice
|
||||
// rather than doing pointer arithmatic
|
||||
// rather than doing pointer arithmetic
|
||||
let slice = unsafe { slice::from_raw_parts_mut(dest, size_with_null_byte) };
|
||||
slice[size] = 0; // add a null terminator
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ pub mod log {
|
||||
static LD_GENERAL_: u64;
|
||||
}
|
||||
|
||||
/// Translate Rust defintions of log domain levels to C. This exposes a 1:1
|
||||
/// Translate Rust definitions of log domain levels to C. This exposes a 1:1
|
||||
/// mapping between types.
|
||||
#[inline]
|
||||
pub unsafe fn translate_domain(domain: LogDomain) -> u64 {
|
||||
@@ -113,7 +113,7 @@ pub mod log {
|
||||
}
|
||||
}
|
||||
|
||||
/// Translate Rust defintions of log severity levels to C. This exposes a
|
||||
/// Translate Rust definitions of log severity levels to C. This exposes a
|
||||
/// 1:1 mapping between types.
|
||||
#[inline]
|
||||
pub unsafe fn translate_severity(severity: LogSeverity) -> c_int {
|
||||
|
||||
Reference in New Issue
Block a user