Skip to content

Commit

Permalink
Fix link errors: delete multiple and unused definitions of globals
Browse files Browse the repository at this point in the history
This doesn't seem to compile right now. Fix it by adding
'extern' for symbols used across compilation units and
deleting some symbols that don't seem to be used in their
own compilation unit.
  • Loading branch information
patrickxia committed Oct 24, 2020
1 parent a843584 commit b0c87ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions connect_socks.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <dlfcn.h>
int proxy_fds[65536];
int len_proxy_fds = 0;
char * socks_host = NULL;
char * socks_port = NULL;

Expand Down
4 changes: 2 additions & 2 deletions connect_socks.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct addrinfo *get_socks_addr(char *host, char *port);
int get_socks_fd(struct addrinfo *res);
int connect_socks(int sockfd, struct addrinfo *res);
int set_socks_addr(char *host, char *port);
char * socks_host;
char * socks_port;
extern char * socks_host;
extern char * socks_port;
void set_socks_info(char * host, char * port);
#endif

0 comments on commit b0c87ca

Please sign in to comment.