binfmt/elf: Fix the minor style issue

and remove the unused macros and unnecessary cast

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-07-03 00:11:02 +08:00
committed by Alan Carvalho de Assis
parent 98bb66998b
commit cb8df39207
48 changed files with 254 additions and 309 deletions
+16 -6
View File
@@ -25,11 +25,6 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <nuttx/arch.h>
#include <nuttx/binfmt/nxflat.h>
/****************************************************************************
@@ -37,9 +32,24 @@
****************************************************************************/
/****************************************************************************
* Public Types
* Public Function Definitions
****************************************************************************/
/****************************************************************************
* Name: nxflat_verifyheader
*
* Description:
* Given the header from a possible NXFLAT executable, verify that it is
* an NXFLAT executable.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
* failure.
*
****************************************************************************/
int nxflat_verifyheader(FAR const struct nxflat_hdr_s *header);
/****************************************************************************
* Name: nxflat_addrenv_alloc
*
+2
View File
@@ -36,6 +36,8 @@
#include <nuttx/fs/fs.h>
#include <nuttx/binfmt/nxflat.h>
#include "libnxflat.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/