mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-26 10:35:39 +00:00
Cleanup some compiler warnings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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 },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user