Cleanup some compiler warnings

This commit is contained in:
Carsten Teibes
2020-06-22 21:24:12 +02:00
parent 8ccb8fe870
commit f8f252343c
4 changed files with 5 additions and 7 deletions

View File

@@ -454,7 +454,7 @@ char * strstr(const char * string, const char * substring)
{
char* strpos;
if (string == 0)
if (*string == 0)
return 0;
if (strlen(substring)==0)

View File

@@ -168,5 +168,5 @@ static const struct _library_entry {
unsigned short funcCount;
void * entrytable;
} _library_entry __attribute__((section(".lib.ent"), used)) = {
NULL, 0, 0x8000, 4, 1, 1, &__entrytable
NULL, 0, 0x8000, 4, 1, 1, (unsigned int *) &__entrytable
};

View File

@@ -11,8 +11,8 @@
#include <pspmoduleexport.h>
#define NULL ((void *) 0)
void extern module_start;
void extern module_info;
extern int module_start;
extern struct SceModuleInfo module_info;
static const unsigned int __syslib_exports[4] __attribute__((section(".rodata.sceResident"))) = {
0xD632ACDB,
0xF01D73A7,
@@ -21,5 +21,5 @@ static const unsigned int __syslib_exports[4] __attribute__((section(".rodata.sc
};
const struct _PspLibraryEntry __library_exports[1] __attribute__((section(".lib.ent"), used)) = {
{ NULL, 0x0000, 0x8000, 4, 1, 1, &__syslib_exports },
{ NULL, 0x0000, 0x8000, 4, 1, 1, (unsigned int *) &__syslib_exports },
};