mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-14 12:40:11 +00:00
sceNet.cpp: Fix build error and warning.
This commit is contained in:
parent
553e331bae
commit
e072604d9c
@ -105,14 +105,6 @@ struct ApctlHandler {
|
||||
|
||||
static std::map<int, ApctlHandler> apctlHandlers;
|
||||
|
||||
void __NetInit() {
|
||||
__ResetInitNetLib();
|
||||
}
|
||||
|
||||
void __NetShutdown() {
|
||||
__ResetInitNetLib();
|
||||
}
|
||||
|
||||
void __ResetInitNetLib() {
|
||||
netInited = false;
|
||||
netAdhocInited = false;
|
||||
@ -125,6 +117,14 @@ void __ResetInitNetLib() {
|
||||
memset(&netMallocStat, 0, sizeof(netMallocStat));
|
||||
}
|
||||
|
||||
void __NetInit() {
|
||||
__ResetInitNetLib();
|
||||
}
|
||||
|
||||
void __NetShutdown() {
|
||||
__ResetInitNetLib();
|
||||
}
|
||||
|
||||
void __UpdateAdhocctlHandlers(int flag, int error) {
|
||||
u32 args[3] = { 0, 0, 0 };
|
||||
args[0] = flag;
|
||||
@ -305,7 +305,7 @@ int sceNetAdhocTerm() {
|
||||
int sceNetEtherNtostr(const char *mac, u32 bufferPtr) {
|
||||
DEBUG_LOG(HLE, "UNTESTED sceNetEtherNtostr(%s, %x)", mac, bufferPtr);
|
||||
if(Memory::IsValidAddress(bufferPtr)) {
|
||||
int len = strlen(mac);
|
||||
size_t len = strlen(mac);
|
||||
for (int i = 0; i < len; i++)
|
||||
Memory::Write_U8(mac[i], bufferPtr + i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user