Skip to content

Commit

Permalink
Fix typos discovered by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and Julien-Elie committed Sep 4, 2024
1 parent dc26226 commit 53af357
Show file tree
Hide file tree
Showing 61 changed files with 113 additions and 113 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Doug Needham:
moderator info instead of digging it out of a local file.

David Lawrence:
Did the hooks for PGP verificiation of control messages, added
Did the hooks for PGP verification of control messages, added
actived support for syncing against an active file obtained via
ftp.

Expand Down Expand Up @@ -105,7 +105,7 @@ Katsuhiro Kondou:
policy for articles stored through storage API and expireindex, as
well as hundreds of fixes to clean up defects as changes were
made. Did a large amount of man page documentation and clean up.
Has also been a major force in the CVS pool maintenace.
Has also been a major force in the CVS pool maintenance.

Russell Vincent:
Expanded inn.conf to make many of the old compile time options
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ doc/man/libinn_list.3 Manpage for list routines
doc/man/libinn_qio.3 Manpage for fast I/O file routines
doc/man/libinn_tst.3 Manpage for ternary search tree routines
doc/man/libinn_uwildmat.3 Manpage for uwildmat library routine
doc/man/libinnauth.3 Manpage for authprogs utilty routines
doc/man/libinnauth.3 Manpage for authprogs utility routines
doc/man/libinnhist.3 Manpage for history API library routines
doc/man/libinnstorage.3 Manpage for storage API library routines
doc/man/mailpost.8 Manpage for mailpost frontend
Expand Down Expand Up @@ -582,7 +582,7 @@ lib/setenv.c setenv replacement
lib/seteuid.c seteuid replacement
lib/setproctitle.c setproctitle replacement
lib/snprintf.c snprintf and vsnprintf replacement
lib/strcasecmp.c Case-insenstive string comparison (BSD)
lib/strcasecmp.c Case-insensitive string comparison (BSD)
lib/strlcat.c strlcat replacement
lib/strlcpy.c strlcpy replacement
lib/strspn.c Skip bytes in a string (BSD)
Expand Down
2 changes: 1 addition & 1 deletion authprogs/ckpasswd.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ output_user(const char *username, bool wantgroup)
/*
** Main routine.
**
** We handle the variences between systems with #if blocks above, so that
** We handle the variances between systems with #if blocks above, so that
** this code can look fairly clean.
*/
int
Expand Down
6 changes: 3 additions & 3 deletions backends/innxmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
** 0 <= stnq <= STNBUF
** 0 <= stoldest < STNBUF
*/
struct stbufs { /* for each article we are procesing */
struct stbufs { /* for each article we are processing */
char st_fname[SPOOLNAMEBUFF]; /* file name */
char st_id[NNTP_MAXLEN_COMMAND]; /* Message-ID */
unsigned int st_retry; /* retry count (0 for the first try) */
Expand All @@ -96,8 +96,8 @@ static int stnq; /* current number of active entries in stbuf */
static long stnofail; /* Count of consecutive successful sends */
static int stoldest; /* Oldest allocated entry to stbuf (if stnq!=0) */

static int TryStream = true; /* Should attempt stream negotation? */
static int CanStream = false; /* Result of stream negotation */
static int TryStream = true; /* Should attempt stream negotiation? */
static int CanStream = false; /* Result of stream negotiation */
static int DoCheck = true; /* Should check before takethis? */
static char modestream[] = "MODE STREAM";
static char modeheadfeed[] = "MODE HEADFEED";
Expand Down
2 changes: 1 addition & 1 deletion backends/overchan.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ write_overview(struct overview *overview, struct overview_data *data,

/*
** Process a single file. Takes the open overview struct, the file name
** (which may be - to process standard intput), and the statistics struct and
** (which may be - to process standard input), and the statistics struct and
** calls parse_line and write_overview for each line.
*/
static void
Expand Down
2 changes: 1 addition & 1 deletion contrib/README
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ auth_pass

backlogstat

Prints informations about the current state of innfeed's backlog, if
Prints information about the current state of innfeed's backlog, if
any.

cleannewsgroups
Expand Down
4 changes: 2 additions & 2 deletions contrib/analyze-traffic.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# :Tf,WgsbmnN:/usr/local/news/log/traffic
#
# You may find it useful to restrict the articles being logged,
# either by modifing the wildmat pattern, or by using the /exclude
# either by modifying the wildmat pattern, or by using the /exclude
# notation to indicate articles that have passed through some
# servers should not be included.
#
Expand Down Expand Up @@ -58,7 +58,7 @@
# issue warnings (and perhaps produce funny things in the output).
#
# A workaround would be to repeat e.g. the Message-ID at the end of
# the intput format (i.e. WgsbmnNm), and then the script could read as
# the input format (i.e. WgsbmnNm), and then the script could read as
# many lines as necessary until that ad hoc end-of-record marker
# appeared. I haven't found a need for this yet, though.
#
Expand Down
4 changes: 2 additions & 2 deletions contrib/auth_pass.README
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ who may be interested in writing your own...
4) Need I say it (again)...these programs can be a security hole unless care is
taken to avoid SUID programs and those that transmit/receive passwords in
the clear (especially those that use login passwords). We should give some
thought to doing a similiar program for Kerberos authentication (what sort
thought to doing a similar program for Kerberos authentication (what sort
of instance should we use???) and other authentication methods such as
Compuserve's Distributed Authentication (guess I should do this one once the
standard is finialized with the IETF 8) ).
standard is finalized with the IETF 8) ).

Also, a question for the list as a whole... what readers easily support
authinfo generic (including running a program at the reader's end to do things
Expand Down
4 changes: 2 additions & 2 deletions contrib/innconfcheck.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ PAGER=less
# by nroff to edit in the actual inn.conf settings. The problem with this
# approach is that if the format of the inn.conf man page ever changes
# assumptions about the format that this script makes will probably break.
# Presently, the base/orginal format of the inn.conf man page is in perl
# Presently, the base/original format of the inn.conf man page is in perl
# POD documentation. The formatting of this file is less likely to change
# in the future and is a cleaner format for automated editing. However,
# their is some disadvantages to using this file. First disadvantage,
# the POD file is not installed by INN 2.3.0 by default (see INNCONFPOD
# enviromental variable for setting the script to find the file in the
# environmental variable for setting the script to find the file in the
# correct location). Second disadvantage, pod2man does not appear to
# support using stdin so the edited POD must be temporarily stored as a
# file. Finally, the last disadvantage, the script is slower due to the
Expand Down
2 changes: 1 addition & 1 deletion contrib/makeexpctl.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ printline("alt*,misc*,news*,rec*,sci*,soc*,talk*,vmsnet*", "M", 5);
printline("comp*,gnu*,info*,ok*,ecn*,uok*", "U", 5);
printline("comp*,gnu*,info*,ok*,ecn*,uok*", "M", 7);
# and now handle each group that's regularly read,
# assinging them 3* normal max expire
# assigning them 3* normal max expire
foreach my $i (keys %groups) {
printline($i, "A", 21);
}
Expand Down
4 changes: 2 additions & 2 deletions control/pgpverify.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Changes from 1.30 -> 1.31
# -- Add a $gpg_has_allow_weak_digest_algos_flag variable to specify whether
# gpg supports the --allow-weak-digest-algos flag. This variable will
# be overriden by INN::Config, if used. GnuPG 1.4.20 and 2.0.23 introduced
# be overridden by INN::Config, if used. GnuPG 1.4.20 and 2.0.23 introduced
# this flag, necessary to verify the signatures of old PGP keys still in
# use for some hierarchies.
# -- Using at least GnuPG 1.4.20 or 2.1.0 is no longer required; this version
Expand Down Expand Up @@ -210,7 +210,7 @@ $lockdir = $tmpdir;
# /some/text/file" on a file that is not a valid news article. The
# "non-header at line #" error should be syslogged.
#
# $syslog_method = 'unix'; # Unix doman socket, Perl 5.004_03 or higher.
# $syslog_method = 'unix'; # Unix domain socket, Perl 5.004_03 or higher.
# $syslog_method = 'inet'; # UDP to port 514 of localhost.
# $syslog_method = ''; # Don't ever try to do syslogging.
$syslog_method = 'logger'; # Search for the logger program.
Expand Down
2 changes: 1 addition & 1 deletion doc/FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ documentation and the comments in the default configuration file.
Subject: 5. Problems on Specific Systems

Problems specific to particular operating systems or platforms. Look here
if INN doens't behave as expected on your particular system, or if you're
if INN doesn't behave as expected on your particular system, or if you're
having trouble compiling INN in the first place.

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/config-semantics
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ are:
groups of the wanted type, won't be seen).

Therefore, the *only* significance of nested group structure is parameter
inheritence and pruning. In the absence of pruning, it would always be
inheritance and pruning. In the absence of pruning, it would always be
possible, by duplicating parameter settings that were inherited and laying
out the groups in depth-first traversal order, to transform any
configuration file into an entirely equivalent one that contains no nested
Expand Down
2 changes: 1 addition & 1 deletion doc/history
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This file contains a few messages of historical interest. Some of the
information in these messages is out of date (e.g., you don't need any
other software, ihave/sendme is suported, etc); see the README and
other software, ihave/sendme is supported, etc); see the README and
installation manual.

The first is a mail message I sent as soon as I got the idea.
Expand Down
10 changes: 5 additions & 5 deletions doc/history-innfeed
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ It is written in ANSI C and tries to be POSIX.1 compliant. This software
was originally written and maintained by James Brister <[email protected]>
and is now part of INN. The features of it are:

1. Handles the STREAM extenstion to NNTP.
1. Handles the STREAM extension to NNTP.
2. Will open multiple connections to the remote host to parallel
feed.
3. Will handle multiple remote hosts.
Expand Down Expand Up @@ -88,7 +88,7 @@ Changes for 0.10

3. Signal handling is changed so that they are more synchronous
with other activity. This should stop the frequent core-dumps
that occured when running in funnel file mode and sending
that occurred when running in funnel file mode and sending
SIGTERM or SIGALRM.

4. A bug related to zero-length articles was fixed. They will now be
Expand Down Expand Up @@ -258,7 +258,7 @@ Changes for 0.8.4
Changes for version 0.8.1

1. various bug fixes.
2. core files generated by ASSERT are (possibly) put in a seperate
2. core files generated by ASSERT are (possibly) put in a separate
directory to ease debugging are

Changes for version 0.8
Expand Down Expand Up @@ -343,7 +343,7 @@ Bugs/Problems/Notes etc:
5. Adding a backlog file by hand does not cause extra Connections to
be automatically created, only the existing Connections will use
the file. If the extra load requires new Connections to be built
when innd delivers new articles for tranmission, then they too
when innd delivers new articles for transmission, then they too
will use the file, but this a side effect and not a direct
consequence. This means if you want to run in '-x' mode, then
make sure your config file entry states the correct number of
Expand All @@ -368,7 +368,7 @@ Futures:

2. The config file will be revamped to allow for more global
options etc and run-time configuration. Too much is compile-time
dependant at the moment.
dependent at the moment.

3. The connection retry time will get more sophisticated to catch
problems like the nnrpd issue mentioned above.
Expand Down
2 changes: 1 addition & 1 deletion expire/fastrm.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ unlink_filelist(filelist *list, int filecount)
time the operating system spends doing string compares trying to find
the file to be removed in the directory. This is often an O(n)
operation. Note that this optimization may slightly slow more
effecient operating systems. */
efficient operating systems. */
dir = opendir(prefix_len == 0 ? "." : prefix_dir);
if (dir == NULL) {
if (prefix_len > 0 && prefix_dir[0] == '/')
Expand Down
2 changes: 1 addition & 1 deletion frontends/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**
** The encoding uses characters from 0x20 (' ') through 0x7A ('z').
** (That fits nicely into the UUCP 'f' protocol by Piet Beertema.) First,
** expand three eight-bit charcters into four six-bit ones. Collect
** expand three eight-bit characters into four six-bit ones. Collect
** until we have 13, and spread the last one over the first 12, so that
** we have 12 6.5-bit characters. Since there are very few half-bit
** machines, collect them into pairs, making six 13-bit characters. We
Expand Down
2 changes: 1 addition & 1 deletion frontends/ovdb_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ end_table(void)
puts("</table><p>");
}

/* Substracting (char *) 0 for alignment purpose is supported by compilers
/* Subtracting (char *) 0 for alignment purpose is supported by compilers
* like GCC or Clang, but is undefined behaviour by the C Standard as it is
* unknown whether all hardware platforms can actually process such pointer
* arithmetic (many, if not all, can anyway). */
Expand Down
2 changes: 1 addition & 1 deletion frontends/rnews.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ Unspool(void)
continue;
}

/* Make sure multiple Unspools don't stomp on eachother. */
/* Make sure multiple Unspools don't stomp on each other. */
if (!inn_lock_file(fd, INN_LOCK_WRITE, 0)) {
close(fd);
continue;
Expand Down
4 changes: 2 additions & 2 deletions include/inn/innconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct innconf {
unsigned long ovflushcount; /* Articles between buffindexed flushes */
char *ovgrouppat; /* Newsgroups to store overview for */
char *ovmethod; /* Which overview method to use */
bool storeonxref; /* SMstore use Xref to detemine class? */
bool storeonxref; /* SMstore use Xref to determine class? */
bool useoverchan; /* overchan write the overview, not innd? */
bool wireformat; /* Store tradspool articles in wire format? */
bool xrefslave; /* Act as a slave of another server? */
Expand Down Expand Up @@ -217,7 +217,7 @@ struct innconf {
char *pathlog; /* Log files */
char *pathnews; /* Home directory for news user */
char *pathoutgoing; /* Outgoing news batch files */
char *pathoverview; /* Overview infomation */
char *pathoverview; /* Overview information */
char *pathrun; /* Runtime state and sockets */
char *pathspool; /* Root of news spool hierarchy */
char *pathtmp; /* Temporary files for the news system */
Expand Down
2 changes: 1 addition & 1 deletion include/inn/tst.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct tst;
struct tst *tst_init(int width);

/* Insert a value into the tree. If the key already exists in the tree,
option determiens the behavior. If set to TST_REPLACE, the data for that
option determines the behavior. If set to TST_REPLACE, the data for that
key is replaced with the new data value and the old value is returned in
exist_ptr. Otherwise, TST_DUPLICATE_KEY is returned. If key is zero
length, TST_NULL_KEY is returned. If data is NULL, TST_NULL_DATA is
Expand Down
4 changes: 2 additions & 2 deletions innd/README
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Core Channel Handling
with open file descriptors, and three file descriptor sets. Each
channel is generally in one of the three sets (reading, writing, or
sleeping) at any given time. The states should generally be
considered mutually exclusive, since NNTP is not asychronous and a
considered mutually exclusive, since NNTP is not asynchronous and a
channel that's reading and writing at the same time is liable to
deadlock, but the core code doesn't assume that.

Expand All @@ -72,7 +72,7 @@ Core Channel Handling

Reading is handled by the channel itself, since some channels don't
just read data from their file descriptor, but CHANreadtext is
provided for channels to call from their reader fuctions if they want
provided for channels to call from their reader functions if they want
to read normally. CHANreadtext puts the data into the channel's input
buffer and handles resizing and compacting the buffer as needed. To
register as a reading channel, the channel calls RCHANadd, and then
Expand Down
2 changes: 1 addition & 1 deletion innd/art.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ ARTcheckheader(CHANNEL *cp, int size)


/*
** Clean up data field where article informations are stored.
** Clean up data field where article information are stored.
** This must be called before article processing.
*/
void
Expand Down
2 changes: 1 addition & 1 deletion innd/innd.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ typedef struct _PROCESS {
*/
typedef struct _WIP {
HASH MessageID; /* Hash of the messageid. Doing it like
this saves us from haveing to allocate
this saves us from having to allocate
and deallocate memory a lot, and also
means lookups are faster. */
time_t Timestamp; /* Time we last looked at this MessageID */
Expand Down
4 changes: 2 additions & 2 deletions innd/nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ NCproc(CHANNEL *cp)
if (cp->Next - cp->Start > innconf->datamovethreshold
|| (innconf->maxartsize != 0
&& cp->Size > (float) innconf->maxartsize)) {
/* avoid buffer extention for ever */
/* avoid buffer extension for ever */
movedata = true;
} else {
movedata = false;
Expand Down Expand Up @@ -1835,7 +1835,7 @@ NCcreate(int fd, bool MustAuthorize, bool IsLocal)


/*
** These modules support the streaming option to tranfer articles
** These modules support the streaming option to transfer articles
** faster.
*/

Expand Down
2 changes: 1 addition & 1 deletion innd/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ CommaSplit(char *text)
void
SetupListBuffer(int size, LISTBUFFER *list)
{
/* get space for data to be splitted */
/* get space for data to be split */
if (list->Data == NULL) {
list->DataLength = size;
list->Data = xmalloc(list->DataLength + 1);
Expand Down
4 changes: 2 additions & 2 deletions innd/wip.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ WIPsetup(void)
}

/*
* Add a new entry into the table. It is the responsiblity of the applications
* to call WIPinprogress or WIPbyid first.
* Add a new entry into the table. It is the responsibility of the
* applications to call WIPinprogress or WIPbyid first.
*/
WIP *
WIPnew(const char *messageid, CHANNEL *cp)
Expand Down
4 changes: 2 additions & 2 deletions innfeed/article.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct article_s {
char *fname; /* the file name of the article */
char *msgid; /* the msgid of the article (INN tells us) */
Buffer contents; /* the buffer of the actual on disk stuff */
Buffer *nntpBuffers; /* list of buffers for transmisson */
Buffer *nntpBuffers; /* list of buffers for transmission */
MapInfo mapInfo; /* arthandle and mMapping */
bool loggedMissing; /* true if article is missing and we logged */
bool articleOk; /* true until we know otherwise. */
Expand Down Expand Up @@ -785,7 +785,7 @@ fillContents(Article article)
}


/* If we're not useing storage api, we should close a valid file descriptor
/* If we're not using storage api, we should close a valid file descriptor
*/
if (!arthandle && (fd >= 0))
close(fd);
Expand Down
4 changes: 2 additions & 2 deletions innfeed/article.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**
** When an Article is created there's a chance that another copy of it
** already exists. For example if the Article is pulled out of a Tape for a
** particular host it may already be in existance in some other host. This
** particular host it may already be in existence in some other host. This
** class will manage this situation to prevent multiple copies of the article
** being in core.
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ unsigned int artNntpBufferCount(Article article);
/* tell the Article class to log (or not) missing articles as they occur. */
void artLogMissingArticles(bool val);

/* if VAL is true, then when an article is read off disk the necesary
/* if VAL is true, then when an article is read off disk the necessary
carriage returns are inserted instead of setting up iovec-style buffers
for writev. Useful for systems like solaris that have very small max
number of iovecs that writev can take. Must be called only once before
Expand Down
Loading

0 comments on commit 53af357

Please sign in to comment.