mbox series

[0/3] Use standard C string APIs in FDT helper

Message ID 20200723015404.17667-1-abner.chang@hpe.com
Headers show
Series Use standard C string APIs in FDT helper | expand

Message

Chang, Abner (HPS SW/FW Technologist) July 23, 2020, 1:54 a.m. UTC
Use strncmp instead of using sbi_strcmp directly in fdthelp.c.
- This keeps the consistency with lidfdt implementation and utilizing
  libfdt_evn.h for the different build environment even fdlhelp.c is not
  part of standard fdt library.
- In libfdt_evn.h, a macro overrides strncmp with sbi_strncmp.
- For edk2 firmware solution, similar macro is used to repalce strncmp with
  EDK2 string API.
- Use strncmp instead of strcmp, which is much safer.

Abner Chang (3):
  Use standard C string APIs in FDT helper
  Use standard C string APIs in FDT helper
  Use standard C string APIs in FDT helper

 include/sbi/sbi_string.h      | 2 +-
 lib/sbi/sbi_string.c          | 4 ++--
 lib/utils/fdt/fdt_helper.c    | 2 +-
 lib/utils/libfdt/libfdt_env.h | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)