You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/13 15:49:32 UTC

[incubator-nuttx] 01/04: Appease nxstyle complaints

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

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

commit 6f3e12709477e77f1df7d318440c70c12d28b77b
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Apr 13 12:54:29 2020 +0900

    Appease nxstyle complaints
---
 libs/libc/modlib/modlib.h          | 7 ++++---
 libs/libc/modlib/modlib_sections.c | 4 +++-
 libs/libc/modlib/modlib_symbols.c  | 4 +++-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/libs/libc/modlib/modlib.h b/libs/libc/modlib/modlib.h
index 26b1112..f03cc98 100644
--- a/libs/libc/modlib/modlib.h
+++ b/libs/libc/modlib/modlib.h
@@ -116,8 +116,8 @@ int modlib_readsym(FAR struct mod_loadinfo_s *loadinfo, int index,
  *   0 (OK) is returned on success and a negated errno is returned on
  *   failure.
  *
- *   EINVAL - There is something inconsistent in the symbol table (should only
- *            happen if the file is corrupted)
+ *   EINVAL - There is something inconsistent in the symbol table (should
+ *            only happen if the file is corrupted)
  *   ENOSYS - Symbol lies in common
  *   ESRCH  - Symbol has no name
  *   ENOENT - Symbol undefined and not provided via a symbol table
@@ -189,7 +189,8 @@ int modlib_allocbuffer(FAR struct mod_loadinfo_s *loadinfo);
  *
  ****************************************************************************/
 
-int modlib_reallocbuffer(FAR struct mod_loadinfo_s *loadinfo, size_t increment);
+int modlib_reallocbuffer(FAR struct mod_loadinfo_s *loadinfo,
+                         size_t increment);
 
 /****************************************************************************
  * Name: modlib_freebuffers
diff --git a/libs/libc/modlib/modlib_sections.c b/libs/libc/modlib/modlib_sections.c
index 377ff4f..c65fbfc 100644
--- a/libs/libc/modlib/modlib_sections.c
+++ b/libs/libc/modlib/modlib_sections.c
@@ -248,7 +248,9 @@ int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo,
   int ret;
   int i;
 
-  /* Search through the shdr[] array in loadinfo for a section named 'sectname' */
+  /* Search through the shdr[] array in loadinfo for a section named
+   * 'sectname'
+   */
 
   for (i = 0; i < loadinfo->ehdr.e_shnum; i++)
     {
diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c
index a3eed52..e000fbf 100644
--- a/libs/libc/modlib/modlib_symbols.c
+++ b/libs/libc/modlib/modlib_symbols.c
@@ -412,7 +412,9 @@ int modlib_symvalue(FAR struct module_s *modp,
             return -ENOENT;
           }
 
-        /* Yes... add the exported symbol value to the ELF symbol table entry */
+        /* Yes... add the exported symbol value to the ELF symbol tablei
+         * entry
+         */
 
         binfo("SHN_UNDEF: name=%s %08x+%08x=%08x\n",
               loadinfo->iobuffer, sym->st_value, symbol->sym_value,