From 384218d78768be40fbdff47924097b7d69ca6891 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 17 Jan 2023 22:35:41 +0100 Subject: [PATCH] Fix the the. --- ext/filesystem.cpp | 2 +- kernel/net/em/em.cpp | 2 +- kernel/net/ip.cpp | 2 +- kernel/pipe.cpp | 2 +- share/man/man4/arp.4 | 2 +- share/man/man4/if.4 | 2 +- share/man/man4/inet.4 | 2 +- share/man/man5/init.5 | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/filesystem.cpp b/ext/filesystem.cpp index e7151c3f..e70cb2ff 100644 --- a/ext/filesystem.cpp +++ b/ext/filesystem.cpp @@ -71,7 +71,7 @@ Filesystem::Filesystem(Device* device, const char* mount_path) sb->s_mnt_count++; sb->s_state = EXT2_ERROR_FS; // TODO: Remove this temporarily compatibility when this driver is moved - // into the kernel and the the FUSE frontend is removed. + // into the kernel and the FUSE frontend is removed. #ifdef __GLIBC__ strncpy(sb->s_last_mounted, mount_path, sizeof(sb->s_last_mounted)); #else diff --git a/kernel/net/em/em.cpp b/kernel/net/em/em.cpp index fc4e1030..55aca4d9 100644 --- a/kernel/net/em/em.cpp +++ b/kernel/net/em/em.cpp @@ -663,7 +663,7 @@ void EM::InterruptWork() Ref buf = GetPacket(); // TODO: Design a solution that handles when there's no more // packets available, but later adds packets when they - // become available, otherwise the the receive queue might + // become available, otherwise the receive queue might // deadlock with no available packets. if ( buf ) AddReceiveDescriptor(buf); diff --git a/kernel/net/ip.cpp b/kernel/net/ip.cpp index 9296fd99..d58e5f7e 100644 --- a/kernel/net/ip.cpp +++ b/kernel/net/ip.cpp @@ -396,7 +396,7 @@ bool Send(Ref pktin, else if ( (dst_ip & subnet_ip) == (address_ip & subnet_ip) && dst_ip != address_ip ) memcpy(&route, dst, sizeof(route)); - // Route to the the default route if any. + // Route to the default route if any. else if ( router_ip != htobe32(INADDR_ANY) ) memcpy(&route, &router_ip, sizeof(route)); // Otherwise the network is unreachable. diff --git a/kernel/pipe.cpp b/kernel/pipe.cpp index 2fbe0519..c36eb7ed 100644 --- a/kernel/pipe.cpp +++ b/kernel/pipe.cpp @@ -1204,7 +1204,7 @@ bool PipeChannel::WriteResize(size_t new_size) if ( new_size < min_pipe_size ) new_size = min_pipe_size; - // Refuse to lose data if the the new size would cause truncation. + // Refuse to lose data if the new size would cause truncation. if ( new_size < buffer_used ) new_size = buffer_used; diff --git a/share/man/man4/arp.4 b/share/man/man4/arp.4 index dda7fa20..62204c9f 100644 --- a/share/man/man4/arp.4 +++ b/share/man/man4/arp.4 @@ -58,7 +58,7 @@ messages are not passively added to the cache. .Pp The ARP cache uses a hash table with 256 entries, using a linked list in case of hash collisions. -The hash is the the bytewise xor (exclusive or) of every byte in the network +The hash is the bytewise xor (exclusive or) of every byte in the network address. This hash is perfect if the subnet contains no more than 256 addresses, and degrades in quality for larger subnets, at worst needing to linearly scan the diff --git a/share/man/man4/if.4 b/share/man/man4/if.4 index dc326594..960b1a7f 100644 --- a/share/man/man4/if.4 +++ b/share/man/man4/if.4 @@ -162,7 +162,7 @@ address and the address used as the source address in transmitted packets. .Va address defaults on network interface creation to the value of the .Va addr -field of the the network interface's +field of the network interface's .Va struct if_info . .Pp .Va inet diff --git a/share/man/man4/inet.4 b/share/man/man4/inet.4 index 0cfa95b0..09c4b53e 100644 --- a/share/man/man4/inet.4 +++ b/share/man/man4/inet.4 @@ -43,7 +43,7 @@ IP addresses are notated by the decimal byte values interspaced with periods, e.g. 192.0.2.255. Subnetworks are ranges of IP addresses given by a starting IP address along with how many leading bits (most significant bit first) of the IP address are common -to the network (the prefix), the first address of the the subnetwork is the +to the network (the prefix), the first address of the subnetwork is the prefix with the remaining bits set to zero, and the last address is the prefix with the remaining bits set to one. diff --git a/share/man/man5/init.5 b/share/man/man5/init.5 index c857e77e..c0be9f0f 100644 --- a/share/man/man5/init.5 +++ b/share/man/man5/init.5 @@ -443,7 +443,7 @@ Don't wait for the to become ready before starting this daemon. This flag is meant for dependencies that the daemon can make use of, but isn't essential to the daemon itself becoming ready. -It shouldn't be used if the daemon polls for the the dependency to come online, +It shouldn't be used if the daemon polls for the dependency to come online, as it is more efficient to only start the daemon once the dependency is ready. .It Sy optional Start the daemon even if the