summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@hpe.com>2020-07-25 12:30:40 +0300
committerAnup Patel <anup@brainfault.org>2020-07-29 09:36:15 +0300
commit2845d2d2cf4fb74a89452ba223995aa4a118c07e (patch)
treee0b8b5b82de19f481b104ba880c6995210924552 /lib/utils
parent8e47649eff96c303e02fbd58cdc6c4ed341066ec (diff)
downloadopensbi-2845d2d2cf4fb74a89452ba223995aa4a118c07e.tar.xz
lib: utils: Add a macro in libfdt_env.h for strncmp
This commit add a macro to replace strncmp with sbi_strncmp. Signed-off-by: Abner Chang <abner.chang@hpe.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/libfdt/libfdt_env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/libfdt/libfdt_env.h b/lib/utils/libfdt/libfdt_env.h
index 7fcfe01..bc3e758 100644
--- a/lib/utils/libfdt/libfdt_env.h
+++ b/lib/utils/libfdt/libfdt_env.h
@@ -32,6 +32,7 @@
#define strrchr sbi_strrchr
#define strcpy sbi_strcpy
#define strcmp sbi_strcmp
+#define strncmp sbi_strncmp
#define strlen sbi_strlen
#define strnlen sbi_strnlen