MdePkg/BaseFdtLib: Rename standard functions
Rename the standard functions in the LibFdtSupport to remove conflicts with other libraries that define them. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Jeff Brasen <jbrasen@nvidia.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
1063665fa5
commit
d24187a81f
@@ -18,28 +18,7 @@
|
||||
// so the code gets a bit clunky to handle that case specifically.
|
||||
|
||||
char *
|
||||
strchr (
|
||||
const char *Str,
|
||||
int Char
|
||||
)
|
||||
{
|
||||
char *S;
|
||||
|
||||
S = (char *)Str;
|
||||
|
||||
for ( ; ; S++) {
|
||||
if (*S == Char) {
|
||||
return S;
|
||||
}
|
||||
|
||||
if (*S == '\0') {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
strrchr (
|
||||
fdt_strrchr (
|
||||
const char *Str,
|
||||
int Char
|
||||
)
|
||||
@@ -71,7 +50,7 @@ __isspace (
|
||||
}
|
||||
|
||||
unsigned long
|
||||
strtoul (
|
||||
fdt_strtoul (
|
||||
const char *Nptr,
|
||||
char **EndPtr,
|
||||
int Base
|
||||
|
Reference in New Issue
Block a user