psxhdrs: Fix warnings

This commit is contained in:
Joel Sherrill
2018-12-05 11:58:59 -06:00
parent e15ae5a3a1
commit e517fe682a
2 changed files with 20 additions and 19 deletions
+2 -5
View File
@@ -26,14 +26,11 @@
int test( void );
int result = 1;
int test( void )
{
char *errstr;
const char *errstr;
errstr = dlerror();
result = 0;
return result;
return (errstr != NULL);
}
@@ -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
#include <strings.h>
#include <locale.h>
#define _POSIX_C_SOURCE 200809L
int test( void );
#include <strings.h>
#include <locale.h>
int test( void )
{
char *string1 = "STRING";
char *string2 = "string";
int result;
int test( void );
result = strcasecmp_l( string1, string2, LC_CTYPE );
int test( void )
{
char *string1 = "STRING";
char *string2 = "string";
locale_t locale = NULL;
int result;
return result;
}
result = strcasecmp_l( string1, string2, locale );
return result;
}