[PATCH pinentry 2/2] Fix typos

Tobias Stoeckmann tobias at stoeckmann.org
Tue Aug 13 21:47:21 CEST 2024


Typos found with codespell.
---
 Makefile.am                | 2 +-
 build-aux/texinfo.tex      | 2 +-
 doc/pinentry.texi          | 2 +-
 doc/texinfo.tex            | 2 +-
 pinentry/argparse.c        | 8 ++++----
 pinentry/pinentry-curses.c | 4 ++--
 pinentry/pinentry.c        | 2 +-
 tqt/secqinternal_p.h       | 2 +-
 tqt/secqlineedit.cpp       | 4 ++--
 tqt/secqstring.cpp         | 4 ++--
 tqt/secqstring.h           | 2 +-
 11 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cf51495..3801ce5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -175,7 +175,7 @@ release:
 	 $(MAKE) distcheck; \
 	 echo "/* Build finished at $$(date -uIseconds) */" ;\
          echo "/*" ;\
-	 echo " * Please run the final step interactivly:" ;\
+	 echo " * Please run the final step interactively:" ;\
 	 echo " *   make sign-release" ;\
 	 echo " */" ;\
 	) 2>&1 | tee "$(RELEASE_NAME).buildlog"
diff --git a/build-aux/texinfo.tex b/build-aux/texinfo.tex
index 1e6de89..2bdb643 100644
--- a/build-aux/texinfo.tex
+++ b/build-aux/texinfo.tex
@@ -520,7 +520,7 @@
   \fi
 }

-% Evironment mismatch, #1 expected:
+% Environment mismatch, #1 expected:
 \def\badenverr{%
   \errhelp = \EMsimple
   \errmessage{This command can appear only \inenvironment\temp,
diff --git a/doc/pinentry.texi b/doc/pinentry.texi
index c81cfa4..37925e4 100644
--- a/doc/pinentry.texi
+++ b/doc/pinentry.texi
@@ -806,7 +806,7 @@ Tooltip for an action that would reveal the entered password.

 @item @code{default-tt-hide}
 Tooltip for an action that would hide the password revealed
-by the action labeld with @code{default-tt-visi}
+by the action labeled with @code{default-tt-visi}

 @item @code{default-capshint}
 A hint to be shown if Caps Lock is on.
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 3f81058..9d273bb 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -520,7 +520,7 @@
   \fi
 }

-% Evironment mismatch, #1 expected:
+% Environment mismatch, #1 expected:
 \def\badenverr{%
   \errhelp = \EMsimple
   \errmessage{This command can appear only \inenvironment\temp,
diff --git a/pinentry/argparse.c b/pinentry/argparse.c
index 58b31e7..3f16e68 100644
--- a/pinentry/argparse.c
+++ b/pinentry/argparse.c
@@ -32,7 +32,7 @@

 /* This file may be used as part of GnuPG or standalone.  A GnuPG
    build is detected by the presence of the macro GNUPG_MAJOR_VERSION.
-   Some feature are only availalbe in the GnuPG build mode.
+   Some feature are only available in the GnuPG build mode.
  */

 #ifdef HAVE_CONFIG_H
@@ -412,7 +412,7 @@ static void
 store_alias( ARGPARSE_ARGS *arg, char *name, char *value )
 {
     /* TODO: replace this dummy function with a rea one
-     * and fix the probelms IRIX has with (ALIAS_DEV)arg..
+     * and fix the problems IRIX has with (ALIAS_DEV)arg..
      * used as lvalue
      */
   (void)arg;
@@ -443,7 +443,7 @@ ignore_invalid_option_p (ARGPARSE_ARGS *arg, const char *keyword)

 /* Add the keywords up to the next LF to the list of to be ignored
    options.  After returning FP will either be at EOF or the next
-   character read wll be the first of a new line.  The function
+   character read will be the first of a new line.  The function
    returns 0 on success or true on malloc failure.  */
 static int
 ignore_invalid_option_add (ARGPARSE_ARGS *arg, FILE *fp)
@@ -1228,7 +1228,7 @@ long_opt_strlen( ARGPARSE_OPTS *o )
  *    this option
  *  - a description,ine which starts with a '@' and is followed by
  *    any other characters is printed as is; this may be used for examples
- *    ans such.
+ *    and such.
  *  - A description which starts with a '|' outputs the string between this
  *    bar and the next one as arguments of the long option.
  */
diff --git a/pinentry/pinentry-curses.c b/pinentry/pinentry-curses.c
index 8660b0f..86f7cd1 100644
--- a/pinentry/pinentry-curses.c
+++ b/pinentry/pinentry-curses.c
@@ -1451,12 +1451,12 @@ dialog_run (pinentry_t pinentry, const char *tty_name, const char *tty_type)
     {
       start_color ();

-      /* Ncurses has use_default_colors, an extentions to the curses
+      /* Ncurses has use_default_colors, an extension to the curses
          library, which allows use of -1 to select default color.  */
 #ifdef NCURSES_VERSION
       use_default_colors ();
 #else
-      /* With no extention, we need to specify color explicitly.  */
+      /* With no extension, we need to specify color explicitly.  */
       if (pinentry->color_fg == PINENTRY_COLOR_DEFAULT)
         pinentry->color_fg = PINENTRY_COLOR_WHITE;
       if (pinentry->color_bg == PINENTRY_COLOR_DEFAULT)
diff --git a/pinentry/pinentry.c b/pinentry/pinentry.c
index 904cc4d..3916dd7 100644
--- a/pinentry/pinentry.c
+++ b/pinentry/pinentry.c
@@ -1760,7 +1760,7 @@ cmd_getpin (assuan_context_t ctx, char *line)
 /* Note that the option --one-button is a hack to allow the use of old
    pinentries while the caller is ignoring the result.  Given that
    options have never been used or flagged as an error the new option
-   is an easy way to enable the messsage mode while not requiring to
+   is an easy way to enable the message mode while not requiring to
    update pinentry or to have the caller test for the message
    command.  New applications which are free to require an updated
    pinentry should use MESSAGE instead. */
diff --git a/tqt/secqinternal_p.h b/tqt/secqinternal_p.h
index a05c9c3..b0bbcb6 100644
--- a/tqt/secqinternal_p.h
+++ b/tqt/secqinternal_p.h
@@ -1,7 +1,7 @@
 /****************************************************************************
 ** $Id$
 **
-** Definition of some shared interal classes
+** Definition of some shared internal classes
 **
 ** Created : 010427
 **
diff --git a/tqt/secqlineedit.cpp b/tqt/secqlineedit.cpp
index da0637a..07f1cdf 100644
--- a/tqt/secqlineedit.cpp
+++ b/tqt/secqlineedit.cpp
@@ -24,7 +24,7 @@
  */


-/* Undo/Redo is disabled, because it uses unsecure memory for the
+/* Undo/Redo is disabled, because it uses insecure memory for the
    history buffer.  */
 #define SECURE_NO_UNDO	1

@@ -638,7 +638,7 @@ void SecTQLineEdit::setAlignment( int flag )
 /*!
   \obsolete
   \fn void SecTQLineEdit::cursorLeft( bool, int )
-  For compatibilty with older applications only. Use cursorBackward()
+  For compatibility with older applications only. Use cursorBackward()
   instead.
   \sa cursorBackward()
 */
diff --git a/tqt/secqstring.cpp b/tqt/secqstring.cpp
index 82dd918..d8aef56 100644
--- a/tqt/secqstring.cpp
+++ b/tqt/secqstring.cpp
@@ -760,7 +760,7 @@ uchar *SecTQString::utf8() const
 		if (u > 0xffff) {
 		    // if people are working in utf8, but strings are encoded in eg. latin1, the resulting
 		    // name might be invalid utf8. This and the corresponding code in fromUtf8 takes care
-		    // we can handle this without loosing information. This can happen with latin filenames
+		    // we can handle this without losing information. This can happen with latin filenames
 		    // and a utf8 locale under Unix.
 		    if (u > 0x10fe00 && u < 0x10ff00) {
 			*cursor++ = (u - 0x10fe00);
@@ -818,7 +818,7 @@ uchar *SecTQString::utf8() const
     Returns the TQChar at index \a i by reference, expanding the string
     with TQChar::null if necessary. The resulting reference can be
     assigned to, or otherwise used immediately, but becomes invalid
-    once furher modifications are made to the string.
+    once further modifications are made to the string.

     \code
 	SecTQString string("ABCDEF");
diff --git a/tqt/secqstring.h b/tqt/secqstring.h
index 9b9f496..4bec31a 100644
--- a/tqt/secqstring.h
+++ b/tqt/secqstring.h
@@ -117,7 +117,7 @@ public:
     SecTQString( const SecTQString & );                 // impl-shared copy
     /* We need a way to convert a TQString to a SecTQString ("importing"
        it).  Having no conversion for the other way prevents
-       accidential bugs where the secure string is copied to insecure
+       accidental bugs where the secure string is copied to insecure
        memory.  */
     SecTQString( const TQString & ); // deep copy
     SecTQString( const TQChar* unicode, uint length ); // deep copy
--
2.46.0




More information about the Gnupg-devel mailing list