diff --git a/Makefile b/Makefile index feb49ae..efe43b5 100644 --- a/Makefile +++ b/Makefile @@ -28,13 +28,13 @@ clean: rm -f src/*_stubs.s ipxwrapper.dll: $(IPXWRAPPER_DEPS) - $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi + $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi wsock32.dll: $(WSOCK32_DEPS) - $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o wsock32.dll $(WSOCK32_DEPS) + $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o wsock32.dll $(WSOCK32_DEPS) mswsock.dll: $(MSWSOCK_DEPS) - $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o mswsock.dll $(MSWSOCK_DEPS) + $(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o mswsock.dll $(MSWSOCK_DEPS) src/ipxwrapper.o: src/ipxwrapper.c src/ipxwrapper.h $(CC) $(CFLAGS) -c -o src/ipxwrapper.o src/ipxwrapper.c diff --git a/src/ipxwrapper.c b/src/ipxwrapper.c index 1b6f684..02fed63 100644 --- a/src/ipxwrapper.c +++ b/src/ipxwrapper.c @@ -302,7 +302,7 @@ static int init_router(void) { * The router thread recieves packets from the listening port and forwards them * to the UDP sockets which emulate IPX. */ -static DWORD WINAPI router_main(LPVOID buf) { +static DWORD WINAPI router_main(LPVOID notused) { ipx_packet *packet = router_buf; int addrlen, rval, sval; unsigned char f6[] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}; @@ -372,7 +372,7 @@ static DWORD WINAPI router_main(LPVOID buf) { continue; } - sval = r_sendto(sockptr->fd, (char*)buf, rval, 0, (struct sockaddr*)&addr, addrlen); + sval = r_sendto(sockptr->fd, (char*)packet, rval, 0, (struct sockaddr*)&addr, addrlen); if(sval == -1) { debug("Error relaying packet: %s", w32_error(WSAGetLastError())); }