diff options
author | Ansa89 <ansalonistefano@gmail.com> | 2016-05-02 10:53:59 +0200 |
---|---|---|
committer | Ansa89 <ansalonistefano@gmail.com> | 2016-05-02 12:21:51 +0200 |
commit | 91d9ad27d4a7ca77c615bcf9d928f11b9d3b3c77 (patch) | |
tree | 983f439fe74e33e873a7325b68e5e3d6fd1cf630 /main.h | |
parent | ec84ddcf7ae148117fc0c5edb82d02eb98ee9db3 (diff) |
Fix some warnings
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -51,7 +51,7 @@ typedef struct tunnel_t { | |||
51 | /* Connection ID, must be int because of uthash */ | 51 | /* Connection ID, must be int because of uthash */ |
52 | int connid; | 52 | int connid; |
53 | /* Friend number of remote end */ | 53 | /* Friend number of remote end */ |
54 | int32_t friendnumber; | 54 | uint32_t friendnumber; |
55 | 55 | ||
56 | UT_hash_handle hh; | 56 | UT_hash_handle hh; |
57 | } tunnel; | 57 | } tunnel; |
@@ -81,7 +81,7 @@ extern int client_local_port_mode; | |||
81 | /* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ | 81 | /* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ |
82 | extern int client_pipe_mode; | 82 | extern int client_pipe_mode; |
83 | /* Remote Tox ID in client mode */ | 83 | /* Remote Tox ID in client mode */ |
84 | extern char *remote_tox_id; | 84 | extern uint8_t *remote_tox_id; |
85 | /* Ports and hostname for port forwarding */ | 85 | /* Ports and hostname for port forwarding */ |
86 | extern int remote_port; | 86 | extern int remote_port; |
87 | extern char *remote_host; | 87 | extern char *remote_host; |
@@ -97,5 +97,9 @@ void parse_lossless_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, | |||
97 | tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); | 97 | tunnel *tunnel_create(int sockfd, int connid, uint32_t friendnumber); |
98 | void tunnel_delete(tunnel *t); | 98 | void tunnel_delete(tunnel *t); |
99 | 99 | ||
100 | void update_select_nfds(int fd); | ||
101 | int send_frame(protocol_frame *frame, uint8_t *data); | ||
102 | int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number); | ||
103 | |||
100 | void print_version(void); | 104 | void print_version(void); |
101 | #endif | 105 | #endif |