Skip to content

Commit

Permalink
RedfishPkg/RedfishCrtLib: remove multiple definitions.
Browse files Browse the repository at this point in the history
There are two definitions for below functions in RedfishCrtLib.h. Create
this change to remote duplicated functions.
Function list: strcmp(), strncmp(), strncpy(), strcpy(), strcat(),
strlen(), strchr(), strcasecmp(), strstr(), memcmp(), memset(),
memcpy(), memchr(), memcmp() and memmove().

Signed-off-by: Nickle Wang <[email protected]>
Cc: Abner Chang <[email protected]>
Cc: Igor Kulchytskyy <[email protected]>
Cc: Nick Ramirez <[email protected]>
Cc: Mike Maslenkin <[email protected]>
Reviewed-by: Abner Chang <[email protected]>
Acked-by: Mike Maslenkin <[email protected]>
  • Loading branch information
nicklela authored and mergify[bot] committed Nov 1, 2023
1 parent ccbe2e9 commit 1b1509a
Showing 1 changed file with 0 additions and 105 deletions.
105 changes: 0 additions & 105 deletions RedfishPkg/Include/Library/RedfishCrtLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ free (
void *
);

void *
memset (
void *,
int,
size_t
);

int
memcmp (
const void *,
const void *,
size_t
);

int
isdigit (
int
Expand Down Expand Up @@ -216,105 +202,20 @@ isalnum (
int
);

void *
memcpy (
void *,
const void *,
size_t
);

void *
memset (
void *,
int,
size_t
);

void *
memchr (
const void *,
int,
size_t
);

int
memcmp (
const void *,
const void *,
size_t
);

void *
memmove (
void *,
const void *,
size_t
);

int
strcmp (
const char *,
const char *
);

int
strncmp (
const char *,
const char *,
size_t
);

char *
strcpy (
char *,
const char *
);

size_t
strlen (
const char *
);

char *
strcat (
char *,
const char *
);

char *
strchr (
const char *,
int
);

int
strcasecmp (
const char *,
const char *
);

int
strncasecmp (
const char *,
const char *,
size_t
);

char *
strncpy (
char *,
size_t,
const char *,
size_t
);

int
strncmp (
const char *,
const char *,
size_t
);

char *
strrchr (
const char *,
Expand All @@ -328,12 +229,6 @@ strtoul (
int
);

char *
strstr (
const char *s1,
const char *s2
);

long
strtol (
const char *,
Expand Down

0 comments on commit 1b1509a

Please sign in to comment.