summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-12-05 11:58:59 -0600
committerJoel Sherrill <joel@rtems.org>2018-12-05 11:58:59 -0600
commite517fe682a55aa9dbd98057b621ab46012861d85 (patch)
tree023ad5e4358a476d6560a35c4816288f9a8d2fac /testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c
parentpsxhdrs: Align the code properly to left hand margin (diff)
downloadrtems-e517fe682a55aa9dbd98057b621ab46012861d85.tar.bz2
psxhdrs: Fix warnings
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c b/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c
index cdcdff7de2..b1a4c8dcf3 100644
--- a/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c
+++ b/testsuites/psxtests/psxhdrs/strings/strcasecmp_l.c
@@ -2,6 +2,7 @@
* @file
* @brief strcasecmp_l() API Conformance Test
*/
+
/*
* COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak
@@ -18,22 +19,25 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _POSIX_C_SOURCE 200809L
- #include <strings.h>
- #include <locale.h>
+#include <strings.h>
+#include <locale.h>
- int test( void );
+int test( void );
- int test( void )
- {
- char *string1 = "STRING";
- char *string2 = "string";
- int result;
+int test( void )
+{
+ char *string1 = "STRING";
+ char *string2 = "string";
+ locale_t locale = NULL;
+ int result;
- result = strcasecmp_l( string1, string2, LC_CTYPE );
+ result = strcasecmp_l( string1, string2, locale );
- return result;
- }
+ return result;
+}