diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2021-07-01 11:18:22 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2021-07-01 11:18:22 +0800 |
| commit | acc1a959fe3c4bc5d5e91f1f31e182ff967008ca (patch) | |
| tree | 4f08247e6d5768d88202ea91af1806cbece13f55 /libpsn00b/psxcd/isofs.c | |
| parent | 01fe30bd8bae59ab954751b08bcc1d158eff7edb (diff) | |
| download | psn00bsdk-acc1a959fe3c4bc5d5e91f1f31e182ff967008ca.tar.gz | |
Fixed missing type errors when compiling libraries due to the new variable type changes
Diffstat (limited to 'libpsn00b/psxcd/isofs.c')
| -rw-r--r-- | libpsn00b/psxcd/isofs.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libpsn00b/psxcd/isofs.c b/libpsn00b/psxcd/isofs.c index 0122609..dc0c5ca 100644 --- a/libpsn00b/psxcd/isofs.c +++ b/libpsn00b/psxcd/isofs.c @@ -1,3 +1,4 @@ +#include <sys/types.h> #include <stdio.h> #include <malloc.h> #include <string.h> @@ -11,8 +12,8 @@ typedef struct _CdlDIR_INT { - u_int _pos; - u_int _len; + u_long _pos; + u_long _len; u_char* _dir; } CdlDIR_INT; @@ -81,7 +82,7 @@ static int _CdReadIsoDescriptor(int session_offs) printf("psxcd: Read sectors.\n"); #endif // Read volume descriptor - CdRead(1, (u_int*)_cd_iso_descriptor_buff, CdlModeSpeed); + CdRead(1, (u_long*)_cd_iso_descriptor_buff, CdlModeSpeed); if( CdReadSync(0, 0) ) { @@ -127,7 +128,7 @@ static int _CdReadIsoDescriptor(int session_offs) // Read path table CdIntToPos(descriptor->pathTable1Offs, &loc); CdControl(CdlSetloc, (u_char*)&loc, 0); - CdRead(i>>11, (u_int*)_cd_iso_pathtable_buff, CdlModeSpeed); + CdRead(i>>11, (u_long*)_cd_iso_pathtable_buff, CdlModeSpeed); if( CdReadSync(0, 0) ) { #ifdef DEBUG @@ -177,7 +178,7 @@ static int _CdReadIsoDirectory(int lba) // Read first sector of directory record _cd_iso_directory_buff = (u_char*)malloc(2048); - CdRead(1, (u_int*)_cd_iso_directory_buff, CdlModeSpeed); + CdRead(1, (u_long*)_cd_iso_directory_buff, CdlModeSpeed); if( CdReadSync(0, 0) ) { #ifdef DEBUG @@ -213,7 +214,7 @@ static int _CdReadIsoDirectory(int lba) printf("psxcd_dbg: Allocated %d bytes for directory record.\n", i); #endif - CdRead(i>>11, (u_int*)_cd_iso_directory_buff, CdlModeSpeed); + CdRead(i>>11, (u_long*)_cd_iso_directory_buff, CdlModeSpeed); if( CdReadSync(0, 0) ) { #ifdef DEBUG |
