Skip to content

Commit

Permalink
usr.sbin: Remove repeated words
Browse files Browse the repository at this point in the history
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed by: imp
Pull Request: #887
  • Loading branch information
ElyesH authored and bsdimp committed Apr 11, 2024
1 parent f7cee4f commit ec8a394
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion usr.sbin/arp/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ rtmsg(int cmd, struct sockaddr_in *dst, struct sockaddr_dl *sdl)

/*
* get_ether_addr - get the hardware address of an interface on the
* the same subnet as ipaddr.
* same subnet as ipaddr.
*/
static int
get_ether_addr(in_addr_t ipaddr, struct ether_addr *hwaddr)
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/bhyve/amd64/spinup_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spinup_ap_realmode(struct vcpu *newcpu, uint64_t rip)

/*
* Update the %cs and %rip of the guest so that it starts
* executing real mode code at at 'vector << 12'.
* executing real mode code at 'vector << 12'.
*/
error = vm_set_register(newcpu, VM_REG_GUEST_RIP, 0);
assert(error == 0);
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/bhyve/pci_emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ pci_cfgrw(int in, int bus, int slot, int func, int coff, int bytes,

/*
* Just return if there is no device at this slot:func or if the
* the guest is doing an un-aligned access.
* guest is doing an un-aligned access.
*/
if (pi == NULL || (bytes != 1 && bytes != 2 && bytes != 4) ||
(coff & (bytes - 1)) != 0) {
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/bhyve/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
* begin with a 16-bit <flags> field and 16-bit index <idx>, then
* have <N> 16-bit <ring> values, followed by one final 16-bit
* field <used_event>. The <N> <ring> entries are simply indices
* indices into the descriptor ring (and thus must meet the same
* into the descriptor ring (and thus must meet the same
* constraints as each <next> value). However, <idx> is counted
* up from 0 (initially) and simply wraps around after 65535; it
* is taken mod <N> to find the next available entry.
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/crunch/crunchgen/crunchgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ fillin_program(prog_t *p)
}

/* Unless the option to make object files was specified the
* the objects will be built in the source directory unless
* objects will be built in the source directory unless
* an object directory already exists.
*/
if (!makeobj && !p->objdir && p->srcdir) {
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/fstyp/hammer2_disk.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ typedef struct hammer2_dirent_head hammer2_dirent_head_t;
*
* Simple check codes are not sufficient for unverified dedup. Even with
* a maximally-sized check code unverified dedup should only be used in
* in subdirectory trees where you do not need 100% data integrity.
* subdirectory trees where you do not need 100% data integrity.
*
* Unverified dedup is deduping based on meta-data only without verifying
* that the data blocks are actually identical. Verified dedup guarantees
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/kldxref/kldxref.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ typedef TAILQ_HEAD(pnp_head, pnp_elt) pnp_list;

/*
* this function finds the data from the pnp table, as described by the
* the description and creates a new output (new_desc). This output table
* description and creates a new output (new_desc). This output table
* is a form that's easier for the agent that's automatically loading the
* modules.
*
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/newsyslog/newsyslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ set_swpid(struct sigwork_entry *swork, const struct conf_entry *ent)
/*
* Warn if the PID file is empty, but do not consider
* it an error. Most likely it means the process has
* has terminated, so it should be safe to rotate any
* terminated, so it should be safe to rotate any
* log files that the process would have been using.
*/
if (feof(f) && enforcepid == 0) {
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/nscd/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct configuration_entry {
/*
* configuration_entry holds pointers for all actual cache_entries,
* which are used for it. There is one for positive caching, one for
* for negative caching, and several (one per each euid/egid) for
* negative caching, and several (one per each euid/egid) for
* multipart caching.
*/
cache_entry positive_cache_entry;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/nscd/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ set_threads_num(struct configuration *config, int value)

/*
* The main configuration routine. Its implementation is hugely inspired by the
* the same routine implementation in Solaris NSCD.
* same routine implementation in Solaris NSCD.
*/
int
parse_config_file(struct configuration *config,
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/nscd/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int on_write_response_write1(struct query_state *);

/*
* Clears the specified configuration entry (clears the cache for positive and
* and negative entries) and also for all multipart entries.
* negative entries) and also for all multipart entries.
*/
static void
clear_config_entry(struct configuration_entry *config_entry)
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/pmcstat/pmcpl_callgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pmcpl_cg_process(struct pmcstat_process *pp, struct pmcstat_pmcrecord *pmcr,
* For each return address in the call chain record, subject
* to the maximum depth desired.
* - Find the image associated with the sample. Stop if there
* there is no valid image at that address.
* is no valid image at that address.
* - Find the function that overlaps the return address.
* - If found: use the start address of the function.
* If not found (say an object's symbol table is not present or
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/ppp/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s)

/*
* arp_EtherAddr - get the hardware address of an interface on the
* the same subnet as ipaddr.
* same subnet as ipaddr.
*/

int
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/sesutil/eltsub.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* derived from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
* the GNU Public License ("GPL").
* GNU Public License ("GPL").
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Expand Down

0 comments on commit ec8a394

Please sign in to comment.