Changeset e517fe68 in rtems


Ignore:
Timestamp:
Dec 5, 2018, 5:58:59 PM (6 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
9abe98b3
Parents:
e15ae5a3
Message:

psxhdrs: Fix warnings

Location:
testsuites/psxtests/psxhdrs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxhdrs/dlfcn/dlerror.c

    re15ae5a3 re517fe68  
    2727 int test( void );
    2828
    29  int result = 1;
    30 
    3129 int test( void )
    3230 {
    33    char *errstr;
     31   const char *errstr;
    3432
    3533   errstr = dlerror();
    36    result = 0;
    3734
    38    return result;
     35   return (errstr != NULL);
    3936 }
  • testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c

    re15ae5a3 re517fe68  
    33 *  @brief strcasecmp_l() API Conformance Test
    44 */
     5
    56/*
    67 *  COPYRIGHT (c) 2018.
     
    1920 */
    2021
    21  #ifdef HAVE_CONFIG_H
    22  #include "config.h"
    23  #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2425
    25  #include <strings.h>
    26  #include <locale.h>
     26#define _POSIX_C_SOURCE 200809L
    2727
    28  int test( void );
     28#include <strings.h>
     29#include <locale.h>
    2930
    30  int test( void )
    31  {
    32    char *string1 = "STRING";
    33    char *string2 = "string";
    34    int result;
     31int test( void );
    3532
    36    result = strcasecmp_l( string1, string2, LC_CTYPE );
     33int test( void )
     34{
     35  char *string1 = "STRING";
     36  char *string2 = "string";
     37  locale_t locale = NULL;
     38  int result;
    3739
    38    return result;
    39  }
     40  result = strcasecmp_l( string1, string2, locale );
     41
     42  return result;
     43}
Note: See TracChangeset for help on using the changeset viewer.