aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2024-05-12 22:09:23 +0000
committerWerner Koch <[email protected]>2024-05-31 10:28:32 +0000
commit42b0e9558a308dbc954ee60c3d346b5cabcd2fdb (patch)
treef073776758cd706a0cadf0bd64073d1669a8d691 /common
parentg13: Adjust for changed gnupg_process_spawn. (diff)
downloadgnupg-42b0e9558a308dbc954ee60c3d346b5cabcd2fdb.tar.gz
gnupg-42b0e9558a308dbc954ee60c3d346b5cabcd2fdb.zip
indent: Fix spelling
-- These are non-substantive corrections for minor spelling mistakes within the GnuPG codebase. With something like this applied to the codebase, and a judiciously tuned spellchecker integrated as part of a standard test suite, it should be possible to keep a uniform orthography within the project. GnuPG-bug-id: 7116
Diffstat (limited to 'common')
-rw-r--r--common/asshelp.c2
-rw-r--r--common/audit.c2
-rw-r--r--common/audit.h2
-rw-r--r--common/compliance.c2
-rw-r--r--common/dotlock.c2
-rw-r--r--common/gettime.c2
-rw-r--r--common/homedir.c4
-rw-r--r--common/iobuf.c2
-rw-r--r--common/iobuf.h2
-rw-r--r--common/mkdir_p.h2
-rw-r--r--common/openpgp-fpr.c2
-rw-r--r--common/openpgp-oid.c2
-rw-r--r--common/session-env.c4
-rw-r--r--common/sexp-parse.h2
-rw-r--r--common/sexputil.c4
-rw-r--r--common/sysutils.c4
-rw-r--r--common/t-iobuf.c2
-rw-r--r--common/tlv-builder.c2
-rw-r--r--common/tlv-parser.c2
-rw-r--r--common/tlv.h2
-rw-r--r--common/util.h2
21 files changed, 25 insertions, 25 deletions
diff --git a/common/asshelp.c b/common/asshelp.c
index 957ca994d..f17a32e52 100644
--- a/common/asshelp.c
+++ b/common/asshelp.c
@@ -695,7 +695,7 @@ get_assuan_server_version (assuan_context_t ctx, int mode, char **r_version)
/* Print a warning if the server's version number is less than our
* version number. Returns an error code on a connection problem.
- * CTX is the Assuan context, SERVERNAME is the name of teh server,
+ * CTX is the Assuan context, SERVERNAME is the name of the server,
* STATUS_FUNC and STATUS_FUNC_DATA is a callback to emit status
* messages. If PRINT_HINTS is set additional hints are printed. For
* MODE see get_assuan_server_version. */
diff --git a/common/audit.c b/common/audit.c
index 42a2cf6d6..551563c61 100644
--- a/common/audit.c
+++ b/common/audit.c
@@ -44,7 +44,7 @@ struct log_item_s
gpg_error_t err; /* The logged error code. */
int intvalue; /* A logged integer value. */
char *string; /* A malloced string or NULL. */
- ksba_cert_t cert; /* A certifciate or NULL. */
+ ksba_cert_t cert; /* A certificate or NULL. */
unsigned int have_err:1;
unsigned int have_intvalue:1;
};
diff --git a/common/audit.h b/common/audit.h
index 05f39533d..9fadba1b2 100644
--- a/common/audit.h
+++ b/common/audit.h
@@ -76,7 +76,7 @@ typedef enum
/* The signature is a detached one. */
AUDIT_CERT_ONLY_SIG,
- /* A certifciate only signature has been detected. */
+ /* A certificate only signature has been detected. */
AUDIT_DATA_HASH_ALGO, /* int */
/* The hash algo given as argument is used for the data. This
diff --git a/common/compliance.c b/common/compliance.c
index 2df10d2e2..d421b0371 100644
--- a/common/compliance.c
+++ b/common/compliance.c
@@ -42,7 +42,7 @@ static int module;
/* This value is used by DSA and RSA checks in addition to the hard
* coded length checks. It allows one to increase the required key length
- * using a confue file. */
+ * using a config file. */
static unsigned int min_compliant_rsa_length;
/* Return the address of a compliance cache variable for COMPLIANCE.
diff --git a/common/dotlock.c b/common/dotlock.c
index fe6d7fe71..ae77fad8a 100644
--- a/common/dotlock.c
+++ b/common/dotlock.c
@@ -1450,7 +1450,7 @@ dotlock_take_unix (dotlock_t h, long timeout)
int wtimereal;
if (ownerchanged)
- wtime = 0; /* Reset because owner chnaged. */
+ wtime = 0; /* Reset because owner changed. */
wtimereal = next_wait_interval (&wtime, &timeout);
if (!timeout)
diff --git a/common/gettime.c b/common/gettime.c
index 136c47ca7..180f388bb 100644
--- a/common/gettime.c
+++ b/common/gettime.c
@@ -124,7 +124,7 @@ timegm (struct tm *tm)
/* Version of the GNU timegm which returns an unsigned 64 bit integer
* instead of the usually signed time_t. On error (uint64_t)(-1) is
- * returned. This function is mostly here becuase on 32 bit Windows
+ * returned. This function is mostly here because on 32 bit Windows
* we have an internal API to get the system time even after
* 2023-01-19. For 32 bit Unix we need to suffer from the too short
* time_t and no system function to construct the time from a tm. */
diff --git a/common/homedir.c b/common/homedir.c
index deb6f3616..392910867 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -1089,7 +1089,7 @@ gnupg_daemon_rootdir (void)
n = GetSystemDirectoryA (path, sizeof path);
if (!n || n >= sizeof path)
- name = xstrdup ("/"); /* Error - use the curret top dir instead. */
+ name = xstrdup ("/"); /* Error - use the current top dir instead. */
else
name = xstrdup (path);
gpgrt_annotate_leaked_object (name);
@@ -1306,7 +1306,7 @@ _gnupg_socketdir_internal (int skip_checks, unsigned *r_info)
strcat (prefixbuffer, gnupgname);
}
- /* Check whether the gnupg sub directory (or the specified diretory)
+ /* Check whether the gnupg sub directory (or the specified directory)
* has proper permissions. */
if (stat (prefix, &sb))
{
diff --git a/common/iobuf.c b/common/iobuf.c
index e46eeac95..7aaf3a878 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -1670,7 +1670,7 @@ iobuf_ioctl (iobuf_t a, iobuf_ioctl_t cmd, int intval, void *ptrval)
/* Peek at a justed opened file. Use this only directly after a
* file has been opened for reading. Don't use it after you did
* a seek. This works only if just file filter has been
- * pushed. Expects a buffer wit size INTVAL at PTRVAL and returns
+ * pushed. Expects a buffer with size INTVAL at PTRVAL and returns
* the number of bytes put into the buffer. */
if (DBG_IOBUF)
log_debug ("iobuf-%d.%d: ioctl '%s' peek\n",
diff --git a/common/iobuf.h b/common/iobuf.h
index 4354c718d..5fa064c20 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -204,7 +204,7 @@ struct iobuf_struct
byte *buf;
} d;
- /* A external drain buffer for reading/writting data skipping internal
+ /* A external drain buffer for reading/writing data skipping internal
draint buffer D.BUF. This allows zerocopy operation reducing
processing overhead across filter stack.
diff --git a/common/mkdir_p.h b/common/mkdir_p.h
index 1e939b32b..08f388916 100644
--- a/common/mkdir_p.h
+++ b/common/mkdir_p.h
@@ -34,7 +34,7 @@
/* Create a directory as well as any missing parents.
- The arguments must be NULL termianted. If DIRECTORY_COMPONENTS...
+ The arguments must be NULL terminated. If DIRECTORY_COMPONENTS...
consists of two elements, "foo/bar" and "xyzzy", this function will
first try to create the directory "foo/bar" and then the directory
"foo/bar/xyzzy". On success returns 0, otherwise an error code is
diff --git a/common/openpgp-fpr.c b/common/openpgp-fpr.c
index 7b110085f..7860d3872 100644
--- a/common/openpgp-fpr.c
+++ b/common/openpgp-fpr.c
@@ -136,7 +136,7 @@ compute_openpgp_fpr (int keyversion, int pgpalgo, unsigned long timestamp,
/* log_printhex (iov[i].data, iov[i].len, "cmpfpr i=%d: ", i); */
err = gcry_md_hash_buffers (hashalgo, 0, result, iov, iovcnt);
- /* log_printhex (result, 20, "fingerpint: "); */
+ /* log_printhex (result, 20, "fingerprint: "); */
/* Better clear the first element because it was set by us. */
iov[0].size = 0;
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c
index 92f0dfbcd..0a7aae000 100644
--- a/common/openpgp-oid.c
+++ b/common/openpgp-oid.c
@@ -129,7 +129,7 @@ make_flagged_int (unsigned long value, char *buf, size_t buflen)
/* fixme: figure out the number of bits in an ulong and start with
that value as shift (after making it a multiple of 7) a more
- straigtforward implementation is to do it in reverse order using
+ straightforward implementation is to do it in reverse order using
a temporary buffer - saves a lot of compares */
for (more=0, shift=28; shift > 0; shift -= 7)
{
diff --git a/common/session-env.c b/common/session-env.c
index e774c1d9b..3ffe3f0f5 100644
--- a/common/session-env.c
+++ b/common/session-env.c
@@ -315,7 +315,7 @@ session_env_putenv (session_env_t se, const char *string)
}
-/* Same as session_env_putenv but with name and value given as distict
+/* Same as session_env_putenv but with name and value given as distinct
values. */
gpg_error_t
session_env_setenv (session_env_t se, const char *name, const char *value)
@@ -355,7 +355,7 @@ session_env_getenv (session_env_t se, const char *name)
object. The returned value is valid as long as SE is valid and as
long it has not been removed or updated by a call to
session_env_putenv. If the variable does not exist, the function
- tries to return the value trough a call to getenv; if that returns
+ tries to return the value through a call to getenv; if that returns
a value, this value is recorded and used. If no value could be
found, returns NULL. The caller must not change the returned
value. */
diff --git a/common/sexp-parse.h b/common/sexp-parse.h
index 0403d65f5..86372e028 100644
--- a/common/sexp-parse.h
+++ b/common/sexp-parse.h
@@ -104,7 +104,7 @@ smatch (unsigned char const **buf, size_t buflen, const char *token)
return 1;
}
-/* Format VALUE for use as the length indicatior of an S-expression.
+/* Format VALUE for use as the length indicator of an S-expression.
The caller needs to provide a buffer HELP_BUFFER with a length of
HELP_BUFLEN. The return value is a pointer into HELP_BUFFER with
the formatted length string. The colon and a trailing nul are
diff --git a/common/sexputil.c b/common/sexputil.c
index 15fd7cf1d..f9842391e 100644
--- a/common/sexputil.c
+++ b/common/sexputil.c
@@ -199,7 +199,7 @@ make_canon_sexp_pad (gcry_sexp_t sexp, int secure,
}
/* Return the so called "keygrip" which is the SHA-1 hash of the
- public key parameters expressed in a way dependend on the algorithm.
+ public key parameters expressed in a way dependent on the algorithm.
KEY is expected to be an canonical encoded S-expression with a
public or private key. KEYLEN is the length of that buffer.
@@ -1195,7 +1195,7 @@ cipher_mode_to_string (int mode)
}
}
-/* Return the cannonical name of the ECC curve in KEY. */
+/* Return the canonical name of the ECC curve in KEY. */
const char *
get_ecc_curve_from_key (gcry_sexp_t key)
{
diff --git a/common/sysutils.c b/common/sysutils.c
index 780af58bd..2bacae2ea 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -588,7 +588,7 @@ translate_sys2libc_fd_int (int fd, int for_write)
/*
* Parse the string representation of a file reference (file handle on
* Windows or file descriptor on POSIX) in FDSTR. The string
- * representation may be either of folllowing:
+ * representation may be either of following:
* (1) 0, 1, or 2 which means stdin, stdout, and stderr, respectively.
* (2) Integer representation (by %d of printf).
@@ -1106,7 +1106,7 @@ modestr_to_mode (const char *modestr, mode_t oldmode)
int
gnupg_mkdir (const char *name, const char *modestr)
{
- /* Note that gpgrt_mkdir also sets ERRNO in addition to returing an
+ /* Note that gpgrt_mkdir also sets ERRNO in addition to returning an
* gpg-error style error code. */
return gpgrt_mkdir (name, modestr);
}
diff --git a/common/t-iobuf.c b/common/t-iobuf.c
index aacf27a8b..9aa0720f6 100644
--- a/common/t-iobuf.c
+++ b/common/t-iobuf.c
@@ -29,7 +29,7 @@
*/
/* The whole code here does not very fill into our general test frame
- * work patter. But let's keep it as it is. */
+ * work pattern. But let's keep it as it is. */
#include <config.h>
#include <stdio.h>
diff --git a/common/tlv-builder.c b/common/tlv-builder.c
index 59e2691e0..0fa5fc2cc 100644
--- a/common/tlv-builder.c
+++ b/common/tlv-builder.c
@@ -95,7 +95,7 @@ ensure_space (tlv_builder_t tb)
* element is described by CLASS, TAG, VALUE, and VALUEEN. CLASS and
* TAG must describe a primitive element and (VALUE,VALUELEN) specify
* its value. The value is a pointer and its object must not be
- * changed as long as the instance TB exists. For a TAG_NULL no vlaue
+ * changed as long as the instance TB exists. For a TAG_NULL no value
* is expected. Errors are not returned but recorded for later
* retrieval. */
void
diff --git a/common/tlv-parser.c b/common/tlv-parser.c
index c9b33d4b6..2cafac3e9 100644
--- a/common/tlv-parser.c
+++ b/common/tlv-parser.c
@@ -42,7 +42,7 @@ struct bufferlist_s
/* An object to control the ASN.1 parsing. */
struct tlv_parser_s
{
- /* The orginal buffer with the entire pkcs#12 object and its length. */
+ /* The original buffer with the entire pkcs#12 object and its length. */
const unsigned char *origbuffer;
size_t origbufsize;
diff --git a/common/tlv.h b/common/tlv.h
index afaa649d9..3136195a5 100644
--- a/common/tlv.h
+++ b/common/tlv.h
@@ -141,7 +141,7 @@ void tlv_builder_add_end (tlv_builder_t tb);
gpg_error_t tlv_builder_finalize (tlv_builder_t tb,
void **r_obj, size_t *r_objlen);
-/* Wite a TLV header to MEMBUF. */
+/* Write a TLV header to MEMBUF. */
void put_tlv_to_membuf (membuf_t *membuf, int class, int tag,
int constructed, size_t length);
diff --git a/common/util.h b/common/util.h
index f8447aea7..671ffbcb7 100644
--- a/common/util.h
+++ b/common/util.h
@@ -323,7 +323,7 @@ void setup_libgcrypt_logging (void);
/* Print an out of core message and die. */
void xoutofcore (void);
-/* Wrapper aroung gpgrt_reallocarray. Uses the gpgrt alloc function
+/* Wrapper around gpgrt_reallocarray. Uses the gpgrt alloc function
* which redirects to the Libgcrypt versions via
* init_common_subsystems. Thus this can be used interchangeable with
* the other alloc functions. */