sceNet.cpp: Fix build error and warning.

This commit is contained in:
The Dax 2013-07-17 17:36:51 -04:00
parent 553e331bae
commit e072604d9c

View File

@ -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);
}