> double declaration of 'strcpy' is still there.

Thanks for catching this, Mike. Version 2 patch file was sent.

Regards,
Nickle

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Mike
> Maslenkin via groups.io
> Sent: Tuesday, October 24, 2023 4:23 AM
> To: Nickle Wang <nick...@nvidia.com>
> Cc: devel@edk2.groups.io; Abner Chang <abner.ch...@amd.com>; Igor
> Kulchytskyy <ig...@ami.com>; Nick Ramirez <nrami...@nvidia.com>
> Subject: Re: [edk2-devel] [PATCH] RedfishPkg/RedfishCrtLib: remove multiple
> definitions.
> 
> External email: Use caution opening links or attachments
> 
> 
> On Mon, Oct 23, 2023 at 5:18 PM Nickle Wang <nick...@nvidia.com> wrote:
> >
> > There are two definitions for below functions in RedfishCrtLib.h.
> > Create this change to remote duplicated functions.
> > Function list: strcmp(), strncmp(), strncpy(), strcat(), strchr(),
> > strcasecmp(), strstr(), memcmp(), memset(), memcpy() and memchr().
> >
> > Signed-off-by: Nickle Wang <nick...@nvidia.com>
> > Cc: Abner Chang <abner.ch...@amd.com>
> > Cc: Igor Kulchytskyy <ig...@ami.com>
> > Cc: Nick Ramirez <nrami...@nvidia.com>
> > Cc: Mike Maslenkin <mike.maslen...@gmail.com>
> > ---
> >  RedfishPkg/Include/Library/RedfishCrtLib.h | 81
> > +---------------------
> >  1 file changed, 1 insertion(+), 80 deletions(-)
> >
> > diff --git a/RedfishPkg/Include/Library/RedfishCrtLib.h
> > b/RedfishPkg/Include/Library/RedfishCrtLib.h
> > index 23c6acfca33e..80f0e10de8e7 100644
> > --- a/RedfishPkg/Include/Library/RedfishCrtLib.h
> > +++ b/RedfishPkg/Include/Library/RedfishCrtLib.h
> > @@ -3,6 +3,7 @@
> >
> >    Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
> >    (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
> > +  Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
> >
> >      SPDX-License-Identifier: BSD-2-Clause-Patent
> >
> > @@ -172,20 +173,6 @@ free        (
> >    void *
> >    );
> >
> > -void           *
> > -memset     (
> > -  void *,
> > -  int,
> > -  size_t
> > -  );
> > -
> > -int
> > -memcmp      (
> > -  const void *,
> > -  const void *,
> > -  size_t
> > -  );
> > -
> >  int
> >  isdigit     (
> >    int
> > @@ -216,27 +203,6 @@ 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 *,
> > @@ -251,12 +217,6 @@ memmove    (
> >    size_t
> >    );
> >
> > -int
> > -strcmp      (
> > -  const char *,
> > -  const char *
> > -  );
> > -
> >  int
> >  strncmp     (
> >    const char *,
> > @@ -275,24 +235,6 @@ strlen      (
> >    const char *
> >    );
> >
> > -char           *
> > -strcat     (
> > -  char *,
> > -  const char *
> > -  );
> > -
> > -char           *
> > -strchr     (
> > -  const char *,
> > -  int
> > -  );
> > -
> > -int
> > -strcasecmp  (
> > -  const char *,
> > -  const char *
> > -  );
> > -
> >  int
> >  strncasecmp (
> >    const char *,
> > @@ -300,21 +242,6 @@ strncasecmp (
> >    size_t
> >    );
> >
> > -char           *
> > -strncpy    (
> > -  char *,
> > -  size_t,
> > -  const char *,
> > -  size_t
> > -  );
> > -
> > -int
> > -strncmp     (
> > -  const char *,
> > -  const char *,
> > -  size_t
> > -  );
> > -
> >  char           *
> >  strrchr    (
> >    const char *,
> > @@ -328,12 +255,6 @@ strtoul     (
> >    int
> >    );
> >
> > -char *
> > -strstr      (
> > -  const char  *s1,
> > -  const char  *s2
> > -  );
> > -
> >  long
> >  strtol      (
> >    const char *,
> > --
> > 2.17.1
> >
> 
> Hi Nickle
> 
> double declaration of 'strcpy' is still there.
> 
> Best regards,
> Mike.
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#110055): https://edk2.groups.io/g/devel/message/110055
Mute This Topic: https://groups.io/mt/102136148/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to