RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: file/src/ softmagic.c

From: Jeff Johnson <jbj@rpm5.org>
Date: Sun 16 Dec 2007 - 19:01:04 CET
Message-Id: <20071216180104.3DD2C348450@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  jbj@rpm5.org
  Module: file                             Date:   16-Dec-2007 19:01:04
  Branch: HEAD                             Handle: 2007121618010400

  Modified files:
    file/src                softmagic.c

  Log:
    - remove compiler warning.

  Summary:
    Revision    Changes     Path
    1.23        +4  -2      file/src/softmagic.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: file/src/softmagic.c
  ============================================================================
  $ cvs diff -u -r1.22 -r1.23 softmagic.c
  --- file/src/softmagic.c	31 May 2007 02:19:30 -0000	1.22
  +++ file/src/softmagic.c	16 Dec 2007 18:01:04 -0000	1.23
  @@ -32,6 +32,10 @@
   #include "file.h"
   #include "magic.h"
   #include <string.h>
  +#if !(defined(HAVE_STRNDUP) && defined(__USE_GNU))
  +char * strndup(const char *, size_t);
  +#endif
  +
   #include <ctype.h>
   #include <stdlib.h>
   #include <time.h>
  @@ -305,8 +309,6 @@
   }
   
   #ifndef HAVE_STRNDUP
  -char * strndup(const char *, size_t);
  -
   char *
   strndup(const char *str, size_t n)
   {
  @@ .
Received on Sun Dec 16 19:01:04 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.