From: Nishi Date: Fri, 13 Sep 2024 13:41:25 +0000 (+0000) Subject: win64 fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=858194392f22a59fe200bd76bd5581c1ce74fc42;p=tewi.git win64 fix git-svn-id: file:///raid/svn-personal/tewi/trunk@14 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/Makefile b/Server/Makefile index 7156fa8..a2ef9e8 100644 --- a/Server/Makefile +++ b/Server/Makefile @@ -10,7 +10,7 @@ OBJS = version.o main.o config.o server.o ssl.o all: tewi$(EXEC) tewi$(EXEC): $(OBJS) ../Common/common.a - $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) ../Common/common.a -lssl -lcrypto + $(CC) $(LDFLAGS) -o $@ $(OBJS) -lssl -lcrypto $(LIBS) ../Common/common.a .c.o: $(CC) $(CFLAGS) -c -o $@ $< diff --git a/Server/server.c b/Server/server.c index ef4d475..0690d27 100644 --- a/Server/server.c +++ b/Server/server.c @@ -122,7 +122,7 @@ struct pass_entry { unsigned int WINAPI tw_server_pass(void* ptr) { int sock = ((struct pass_entry*)ptr)->sock; bool ssl = ((struct pass_entry*)ptr)->ssl; - int port = ((struct pass_entry*)ptR)->port; + int port = ((struct pass_entry*)ptr)->port; free(ptr); #else void tw_server_pass(int sock, bool ssl, int port) {