Fix typos found by codespell.
-- Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
dfa79f9300
commit
8c61cbfb8f
@ -851,7 +851,7 @@ find_long_option( ARGPARSE_ARGS *arg,
|
|||||||
/* Would be better if we can do a binary search, but it is not
|
/* Would be better if we can do a binary search, but it is not
|
||||||
possible to reorder our option table because we would mess
|
possible to reorder our option table because we would mess
|
||||||
up our help strings - What we can do is: Build a nice option
|
up our help strings - What we can do is: Build a nice option
|
||||||
lookup table wehn this function is first invoked */
|
lookup table when this function is first invoked */
|
||||||
if( !*keyword )
|
if( !*keyword )
|
||||||
return -1;
|
return -1;
|
||||||
for(i=0; opts[i].short_opt; i++ )
|
for(i=0; opts[i].short_opt; i++ )
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
The functions to provide my either be NULL if not required or
|
The functions to provide my either be NULL if not required or
|
||||||
similar to the unistd function with the exception of using the
|
similar to the unistd function with the exception of using the
|
||||||
cookie instead of the fiel descripor.
|
cookie instead of the file descriptor.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1518,7 +1518,7 @@ typedef enum
|
|||||||
GPGME_SIGSUM_CRL_MISSING = 0x0100, /* CRL not available. */
|
GPGME_SIGSUM_CRL_MISSING = 0x0100, /* CRL not available. */
|
||||||
GPGME_SIGSUM_CRL_TOO_OLD = 0x0200, /* Available CRL is too old. */
|
GPGME_SIGSUM_CRL_TOO_OLD = 0x0200, /* Available CRL is too old. */
|
||||||
GPGME_SIGSUM_BAD_POLICY = 0x0400, /* A policy was not met. */
|
GPGME_SIGSUM_BAD_POLICY = 0x0400, /* A policy was not met. */
|
||||||
GPGME_SIGSUM_SYS_ERROR = 0x0800 /* A system error occured. */
|
GPGME_SIGSUM_SYS_ERROR = 0x0800 /* A system error occurred. */
|
||||||
}
|
}
|
||||||
gpgme_sigsum_t;
|
gpgme_sigsum_t;
|
||||||
|
|
||||||
@ -1610,7 +1610,7 @@ struct _gpgme_import_status
|
|||||||
/* Fingerprint. */
|
/* Fingerprint. */
|
||||||
char *fpr;
|
char *fpr;
|
||||||
|
|
||||||
/* If a problem occured, the reason why the key could not be
|
/* If a problem occurred, the reason why the key could not be
|
||||||
imported. Otherwise GPGME_No_Error. */
|
imported. Otherwise GPGME_No_Error. */
|
||||||
gpgme_error_t result;
|
gpgme_error_t result;
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ static struct
|
|||||||
FD is closed. This, together with the fact that dup'ed file
|
FD is closed. This, together with the fact that dup'ed file
|
||||||
descriptors are closed before the file descriptors from which
|
descriptors are closed before the file descriptors from which
|
||||||
they are dup'ed are closed, ensures that CHAN is always valid,
|
they are dup'ed are closed, ensures that CHAN is always valid,
|
||||||
and shared among all file descriptors refering to the same
|
and shared among all file descriptors referring to the same
|
||||||
underlying object.
|
underlying object.
|
||||||
|
|
||||||
The logic behind this is that there is only one reason for us to
|
The logic behind this is that there is only one reason for us to
|
||||||
|
@ -74,7 +74,7 @@ static struct
|
|||||||
that dup'ed file descriptors are closed before the file
|
that dup'ed file descriptors are closed before the file
|
||||||
descriptors from which they are dup'ed are closed, ensures that
|
descriptors from which they are dup'ed are closed, ensures that
|
||||||
the handle or socket is always valid, and shared among all file
|
the handle or socket is always valid, and shared among all file
|
||||||
descriptors refering to the same underlying object.
|
descriptors referring to the same underlying object.
|
||||||
|
|
||||||
The logic behind this is that there is only one reason for us to
|
The logic behind this is that there is only one reason for us to
|
||||||
dup file descriptors anyway: to allow simpler book-keeping of
|
dup file descriptors anyway: to allow simpler book-keeping of
|
||||||
@ -978,7 +978,7 @@ _gpgme_io_write (int fd, const void *buffer, size_t count)
|
|||||||
return TRACE_SYSRES (-1);
|
return TRACE_SYSRES (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If no error occured, the number of bytes in the buffer must be
|
/* If no error occurred, the number of bytes in the buffer must be
|
||||||
zero. */
|
zero. */
|
||||||
assert (!ctx->nbytes);
|
assert (!ctx->nbytes);
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ _gpgme_wait_global_event_cb (void *data, gpgme_event_io_t type,
|
|||||||
gpgme_error_t err = ctx_active (ctx);
|
gpgme_error_t err = ctx_active (ctx);
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
/* An error occured. Close all fds in this context, and
|
/* An error occurred. Close all fds in this context, and
|
||||||
send the error in a done event. */
|
send the error in a done event. */
|
||||||
_gpgme_cancel_with_err (ctx, err, 0);
|
_gpgme_cancel_with_err (ctx, err, 0);
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ gpgme_wait_ext (gpgme_ctx_t ctx, gpgme_error_t *status,
|
|||||||
err = _gpgme_run_io_cb (&fdt.fds[i], 0, &local_op_err);
|
err = _gpgme_run_io_cb (&fdt.fds[i], 0, &local_op_err);
|
||||||
if (err || local_op_err)
|
if (err || local_op_err)
|
||||||
{
|
{
|
||||||
/* An error occured. Close all fds in this context,
|
/* An error occurred. Close all fds in this context,
|
||||||
and signal it. */
|
and signal it. */
|
||||||
_gpgme_cancel_with_err (ictx, err, local_op_err);
|
_gpgme_cancel_with_err (ictx, err, local_op_err);
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ _gpgme_wait_on_condition (gpgme_ctx_t ctx, volatile int *cond,
|
|||||||
|
|
||||||
if (nr < 0)
|
if (nr < 0)
|
||||||
{
|
{
|
||||||
/* An error occured. Close all fds in this context, and
|
/* An error occurred. Close all fds in this context, and
|
||||||
signal it. */
|
signal it. */
|
||||||
err = gpg_error_from_syserror ();
|
err = gpg_error_from_syserror ();
|
||||||
_gpgme_cancel_with_err (ctx, err, 0);
|
_gpgme_cancel_with_err (ctx, err, 0);
|
||||||
@ -116,7 +116,7 @@ _gpgme_wait_on_condition (gpgme_ctx_t ctx, volatile int *cond,
|
|||||||
err = _gpgme_run_io_cb (&ctx->fdt.fds[i], 0, &op_err);
|
err = _gpgme_run_io_cb (&ctx->fdt.fds[i], 0, &op_err);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
/* An error occured. Close all fds in this context,
|
/* An error occurred. Close all fds in this context,
|
||||||
and signal it. */
|
and signal it. */
|
||||||
_gpgme_cancel_with_err (ctx, err, 0);
|
_gpgme_cancel_with_err (ctx, err, 0);
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ _gpgme_wait_on_condition (gpgme_ctx_t ctx, volatile int *cond,
|
|||||||
}
|
}
|
||||||
else if (op_err)
|
else if (op_err)
|
||||||
{
|
{
|
||||||
/* An operational error occured. Cancel the current
|
/* An operational error occurred. Cancel the current
|
||||||
operation but not the session, and signal it. */
|
operation but not the session, and signal it. */
|
||||||
_gpgme_cancel_with_err (ctx, 0, op_err);
|
_gpgme_cancel_with_err (ctx, 0, op_err);
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ read_test (round_t round, gpgme_data_t data)
|
|||||||
read = gpgme_data_read (data, buffer, sizeof (buffer));
|
read = gpgme_data_read (data, buffer, sizeof (buffer));
|
||||||
if (read > 0)
|
if (read > 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s:%d: (%i) gpgme_data_read succeded unexpectedly\n",
|
fprintf (stderr, "%s:%d: (%i) gpgme_data_read succeeded unexpectedly\n",
|
||||||
__FILE__, __LINE__, round);
|
__FILE__, __LINE__, round);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user