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

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


The following commit(s) were added to refs/heads/master by this push:
     new fdef3a7b92 binfmt/libelf: Fix function description field
fdef3a7b92 is described below

commit fdef3a7b9220e53d898742251a6f5a721beb557b
Author: Ville Juven <ville.ju...@unikie.com>
AuthorDate: Wed May 4 09:08:33 2022 +0300

    binfmt/libelf: Fix function description field
    
    Copy&paste error, wrong description field used
---
 binfmt/libelf/libelf_addrenv.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/binfmt/libelf/libelf_addrenv.c b/binfmt/libelf/libelf_addrenv.c
index cece78388e..4504a98ecc 100644
--- a/binfmt/libelf/libelf_addrenv.c
+++ b/binfmt/libelf/libelf_addrenv.c
@@ -146,10 +146,10 @@ int elf_addrenv_alloc(FAR struct elf_loadinfo_s 
*loadinfo, size_t textsize,
 }
 
 /****************************************************************************
- * Name: elf_addrenv_restore
+ * Name: elf_addrenv_select
  *
  * Description:
- *   Restore the address environment before elf_addrenv_select() was called..
+ *   Temporarily select the task's address environment.
  *
  * Input Parameters:
  *   loadinfo - Load state information
@@ -187,20 +187,16 @@ int elf_addrenv_select(FAR struct elf_loadinfo_s 
*loadinfo)
 #endif
 
 /****************************************************************************
- * Name: elf_addrenv_free
+ * Name: elf_addrenv_restore
  *
  * Description:
- *   Release the address environment previously created by
- *   elf_addrenv_alloc().  This function  is called only under certain error
- *   conditions after the module has been loaded but not yet started.
- *   After the module has been started, the address environment will
- *   automatically be freed when the module exits.
+ *   Restore the address environment before elf_addrenv_select() was called..
  *
  * Input Parameters:
  *   loadinfo - Load state information
  *
  * Returned Value:
- *   None.
+ *   Zero (OK) on success; a negated errno value on failure.
  *
  ****************************************************************************/
 

Reply via email to