Missing includes and variables from refactoring.

This commit is contained in:
2019-10-27 20:30:35 +00:00
parent 8f146de2b5
commit 1c07cbbf90
2 changed files with 4 additions and 2 deletions

1
main.c
View File

@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int main()
{

View File

@@ -20,6 +20,7 @@
#include <network.h>
#include <stdio.h>
#include <stdlib.h>
int PrintNetworkAddresses()
{
@@ -43,7 +44,7 @@ void* NetSocket(uint32_t domain, uint32_t type, uint32_t protocol)
{
WiiNetworkContext* ctx;
ctx = malloc(sizeof(UnixNetworkContext));
ctx = malloc(sizeof(WiiNetworkContext));
if(!ctx) return NULL;
@@ -55,7 +56,7 @@ void* NetSocket(uint32_t domain, uint32_t type, uint32_t protocol)
return NULL;
}
ctx->fd = ret;
return ctx;
}
int32_t NetBind(void* net_ctx, struct sockaddr* addr, socklen_t addrlen)