Changeset 79e6ccdd in rtems


Ignore:
Timestamp:
Jun 12, 2007, 4:45:40 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
44a5bb7
Parents:
df1aa03
Message:

2007-06-12 Ralf Corsépius <ralf.corsepius@…>

  • shttpd/defs.h: Eliminate my_strncasecmp.
  • shttpd/string.c: Eliminate my_strncasecmp.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rdf1aa03 r79e6ccdd  
     12007-06-12      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * shttpd/defs.h: Eliminate my_strncasecmp.
     4        * shttpd/string.c: Eliminate my_strncasecmp.
     5
    162007-06-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • cpukit/shttpd/defs.h

    rdf1aa03 r79e6ccdd  
    382382#endif
    383383
     384#ifndef HAVE_STRNCASECMP
    384385extern int      my_strncasecmp(register const char *,
    385386                register const char *, size_t);
     387#else
     388#ifdef __rtems__
     389/* strncasecmp should be in strings.h, but newlib has it in <string.h> */
     390#include <string.h>
     391#else
     392#include <strings.h>
     393#endif
     394#define my_strncasecmp(s1,s2,l) strncasecmp(s1,s2,l)
     395#endif
    386396
    387397#ifndef HAVE_STRNDUP
  • cpukit/shttpd/string.c

    rdf1aa03 r79e6ccdd  
    2121#endif
    2222
     23#ifndef HAVE_STRNCASECMP
    2324int
    2425my_strncasecmp(const char *str1, const char *str2, size_t len)
     
    3435        return (ret);
    3536}
     37#endif
    3638
    3739#ifndef HAVE_STRNDUP
Note: See TracChangeset for help on using the changeset viewer.