mirror of
https://github.com/joel16/CMFileManager-PSP.git
synced 2024-11-26 21:20:24 +00:00
ftp/game: Use c++ type casting
This commit is contained in:
parent
d32445bba2
commit
45f2741820
@ -42,7 +42,7 @@ static struct {
|
||||
static struct {
|
||||
const char *cmd = nullptr;
|
||||
cmd_dispatch_func func;
|
||||
int valid = 0;
|
||||
int valid = -1;
|
||||
} custom_command_dispatchers[MAX_CUSTOM_COMMANDS];
|
||||
|
||||
static void *net_memory = nullptr;
|
||||
@ -871,7 +871,7 @@ static void client_list_thread_end(void) {
|
||||
static int client_thread(SceSize args, void *argp) {
|
||||
char cmd[16] = {0};
|
||||
cmd_dispatch_func dispatch_func;
|
||||
ftppsp_client_info_t *client = *(ftppsp_client_info_t **)argp;
|
||||
ftppsp_client_info_t *client = *reinterpret_cast<ftppsp_client_info_t **>(argp);
|
||||
|
||||
DEBUG("Client thread %i started!\n", client->num);
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace CSO {
|
||||
|
||||
constexpr SceOff SECTOR_SIZE = 0x800;
|
||||
|
||||
int Inflate(char *o_buff, int o_size, const char *i_buff, int i_size) {
|
||||
int Inflate(char *o_buff, int o_size, char *i_buff, int i_size) {
|
||||
z_stream z;
|
||||
int size = 0;
|
||||
|
||||
@ -43,9 +43,9 @@ namespace CSO {
|
||||
if (inflateInit2(&z, -15) != Z_OK)
|
||||
return -1;
|
||||
|
||||
z.next_in = (u8 *)i_buff;
|
||||
z.next_in = reinterpret_cast<u8 *>(i_buff);
|
||||
z.avail_in = i_size;
|
||||
z.next_out = (u8 *)o_buff;
|
||||
z.next_out = reinterpret_cast<u8 *>(o_buff);
|
||||
z.avail_out = o_size;
|
||||
|
||||
inflate(&z, Z_FINISH);
|
||||
|
Loading…
Reference in New Issue
Block a user