You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/08/26 18:39:37 UTC

[incubator-nuttx-apps] branch master updated: apps: fix miscellaneous typos

This is an automated email from the ASF dual-hosted git repository.

davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b283289  apps: fix miscellaneous typos
b283289 is described below

commit b283289986de95a877407baaf7baa9743980507f
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Thu Aug 26 15:36:43 2021 +0300

    apps: fix miscellaneous typos
    
    Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
 README.md                            | 2 +-
 examples/buttons/Makefile            | 4 ++--
 include/builtin/builtin.h            | 4 ++--
 include/nshlib/nshlib.h              | 8 ++++----
 netutils/netlib/netlib_ethaddrconv.c | 8 ++++----
 nshlib/nsh_consolemain.c             | 4 ++--
 nshlib/nsh_init.c                    | 4 ++--
 nshlib/nsh_usbconsole.c              | 2 +-
 system/readline/readline.c           | 4 ++--
 testing/sensortest/sensortest.c      | 6 +++---
 10 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md
index 202f1ff..4414dce 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ during the make context build phase.
 
 To execute an application function:
 
-`exec_builtin()` is defined in the `nuttx/include/apps/builtin/builtin.h`.
+`exec_builtin()` is defined in the `apps/include/builtin/builtin.h`.
 
 ## NuttShell (NSH) Built-In Commands
 
diff --git a/examples/buttons/Makefile b/examples/buttons/Makefile
index a8bb58a..d77ff39 100644
--- a/examples/buttons/Makefile
+++ b/examples/buttons/Makefile
@@ -20,14 +20,14 @@
 
 include $(APPDIR)/Make.defs
 
-# LED driver test built-in application info
+# Buttons test built-in application info
 
 PROGNAME = $(CONFIG_EXAMPLES_BUTTONS_PROGNAME)
 PRIORITY = $(CONFIG_EXAMPLES_BUTTONS_PRIORITY)
 STACKSIZE = $(CONFIG_EXAMPLES_BUTTONS_STACKSIZE)
 MODULE = $(CONFIG_EXAMPLES_BUTTONS)
 
-# LED driver test
+# Buttons test
 
 MAINSRC = buttons_main.c
 
diff --git a/include/builtin/builtin.h b/include/builtin/builtin.h
index dd8ff4b..e666212 100644
--- a/include/builtin/builtin.h
+++ b/include/builtin/builtin.h
@@ -66,7 +66,7 @@ extern "C"
  * Input Parameter:
  *   filename  - Name of the linked-in binary to be started.
  *   argv      - Argument list
- *   redirfile - If output if redirected, this parameter will be non-NULL
+ *   redirfile - If output is redirected, this parameter will be non-NULL
  *               and will provide the full path to the file.
  *   oflags    - If output is redirected, this parameter will provide the
  *               open flags to use.  This will support file replacement
@@ -74,7 +74,7 @@ extern "C"
  *
  * Returned Value:
  *   This is an end-user function, so it follows the normal convention:
- *   Returns the PID of the exec'ed module.  On failure, it.returns
+ *   Returns the PID of the exec'ed module.  On failure, it returns
  *   -1 (ERROR) and sets errno appropriately.
  *
  ****************************************************************************/
diff --git a/include/nshlib/nshlib.h b/include/nshlib/nshlib.h
index f636e1c..894e736 100644
--- a/include/nshlib/nshlib.h
+++ b/include/nshlib/nshlib.h
@@ -86,7 +86,7 @@ extern "C"
  *
  * Description:
  *   This interface is used to initialize the NuttShell (NSH).
- *   nsh_initialize() should be called one during application start-up prior
+ *   nsh_initialize() should be called once during application start-up prior
  *   to executing either nsh_consolemain() or nsh_telnetstart().
  *
  * Input Parameters:
@@ -103,9 +103,9 @@ void nsh_initialize(void);
  * Name: nsh_consolemain
  *
  * Description:
- *   This interfaces maybe to called or started with task_start to start a
- *   single an NSH instance that operates on stdin and stdout.  This
- *   function does not return.
+ *   This interface may be called or started with task_start to start a
+ *   single NSH instance that operates on stdin and stdout.  This function
+ *   does not return.
  *
  *   This function handles generic /dev/console character devices, or
  *   special USB console devices.  The USB console requires some special
diff --git a/netutils/netlib/netlib_ethaddrconv.c b/netutils/netlib/netlib_ethaddrconv.c
index 0a577cb..5f42547 100644
--- a/netutils/netlib/netlib_ethaddrconv.c
+++ b/netutils/netlib/netlib_ethaddrconv.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * apps/netutils/netlib/netlib.c
+ * apps/netutils/netlib/netlib_ethaddrconv.c
  * Various uIP library functions.
  *
  *   Copyright (C) 2007, 2009, 2011, 2016 Gregory Nutt. All rights reserved.
@@ -78,9 +78,9 @@ bool netlib_ethaddrconv(FAR const char *hwstr, FAR uint8_t *hw)
         {
           ch = *hwstr++;
           if (++j > 3)
-           {
-             return false;
-           }
+            {
+              return false;
+            }
 
           if (ch == ':' || ch == 0)
             {
diff --git a/nshlib/nsh_consolemain.c b/nshlib/nsh_consolemain.c
index 63e655b..5cf09d4 100644
--- a/nshlib/nsh_consolemain.c
+++ b/nshlib/nsh_consolemain.c
@@ -45,11 +45,11 @@
  * Name: nsh_consolemain (Normal character device version)
  *
  * Description:
- *   This interfaces may be to called or started with task_start to start a
+ *   This interface may be to called or started with task_start to start a
  *   single an NSH instance that operates on stdin and stdout.  This
  *   function does not normally return (see below).
  *
- *   This version of nsh_consolmain handles generic /dev/console character
+ *   This version of nsh_consolemain handles generic /dev/console character
  *   devices (see nsh_usbconsole.c and usb_usbkeyboard for other versions
  *   for special USB console devices).
  *
diff --git a/nshlib/nsh_init.c b/nshlib/nsh_init.c
index 88680d2..2cf6803 100644
--- a/nshlib/nsh_init.c
+++ b/nshlib/nsh_init.c
@@ -52,8 +52,8 @@ static const struct extmatch_vtable_s g_nsh_extmatch =
  * Name: nsh_initialize
  *
  * Description:
- *   This nterfaces is used to initialize the NuttShell (NSH).
- *   nsh_initialize() should be called one during application start-up prior
+ *   This interface is used to initialize the NuttShell (NSH).
+ *   nsh_initialize() should be called once during application start-up prior
  *   to executing either nsh_consolemain() or nsh_telnetstart().
  *
  * Input Parameters:
diff --git a/nshlib/nsh_usbconsole.c b/nshlib/nsh_usbconsole.c
index c538f0d..5ec2ac4 100644
--- a/nshlib/nsh_usbconsole.c
+++ b/nshlib/nsh_usbconsole.c
@@ -219,7 +219,7 @@ restart:
  * Name: nsh_consolemain (USB console version)
  *
  * Description:
- *   This interfaces maybe to called or started with task_start to start a
+ *   This interface may be called or started with task_start to start a
  *   single an NSH instance that operates on stdin and stdout.  This
  *   function does not return.
  *
diff --git a/system/readline/readline.c b/system/readline/readline.c
index 91e4631..47b345d 100644
--- a/system/readline/readline.c
+++ b/system/readline/readline.c
@@ -101,8 +101,8 @@ static int readline_getc(FAR struct rl_common_s *vtbl)
 
       else if (nread < 0)
         {
-          /* EINTR is not really an error; it simply means that a signal we
-           * received while watiing for input.
+          /* EINTR is not really an error; it simply means that a signal was
+           * received while waiting for input.
            */
 
           int errcode = errno;
diff --git a/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c
index e6aae98..85f96f5 100644
--- a/testing/sensortest/sensortest.c
+++ b/testing/sensortest/sensortest.c
@@ -153,12 +153,12 @@ static void print_gps(const char *buffer, const char *name)
 static void usage(void)
 {
   printf("sensortest [arguments...] <command>\n");
-  printf("\t[-h      ]  sensotest commands help\n");
+  printf("\t[-h      ]  sensortest commands help\n");
   printf("\t[-i <val>]  The output data period of sensor in us\n");
   printf("\t            default: 1000000\n");
   printf("\t[-b <val>]  The maximum report latency of sensor in us\n");
   printf("\t            default: 0\n");
-  printf("\t[-n <val>]  The specify number of output data\n");
+  printf("\t[-n <val>]  The number of output data\n");
   printf("\t            default: 0\n");
 
   printf(" Commands:\n");
@@ -244,7 +244,7 @@ int main(int argc, FAR char *argv[])
 
       if (!len)
         {
-          printf("The sensor node name:%s is invaild\n", name);
+          printf("The sensor node name:%s is invalid\n", name);
           usage();
           ret = -EINVAL;
           goto name_err;