diff options
author | GDR! <gdr@gdr.name> | 2016-12-07 15:37:06 +0100 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2016-12-07 15:37:06 +0100 |
commit | 798e20be9d3b51d3fe1e2112c218ddf6ea02e497 (patch) | |
tree | a75c4a0a48874b8776aa2afce65d600aae3353f8 /main.h | |
parent | b3b0e345a94830a186168a4ecd53e0259a00b0c0 (diff) | |
parent | db012b1311c5ca46d5784376ad0c05b5c241f817 (diff) |
No warnings in -wall
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -52,13 +52,13 @@ typedef struct tunnel_t { | |||
52 | /* Connection ID, must be int because of uthash */ | 52 | /* Connection ID, must be int because of uthash */ |
53 | int connid; | 53 | int connid; |
54 | /* Friend number of remote end */ | 54 | /* Friend number of remote end */ |
55 | int32_t friendnumber; | 55 | uint32_t friendnumber; |
56 | 56 | ||
57 | UT_hash_handle hh; | 57 | UT_hash_handle hh; |
58 | } tunnel; | 58 | } tunnel; |
59 | 59 | ||
60 | typedef struct allowed_toxid { | 60 | typedef struct allowed_toxid { |
61 | char toxid[TOX_ADDRESS_SIZE]; | 61 | uint8_t toxid[TOX_ADDRESS_SIZE]; |
62 | struct allowed_toxid *next; | 62 | struct allowed_toxid *next; |
63 | } allowed_toxid; | 63 | } allowed_toxid; |
64 | 64 | ||
@@ -94,7 +94,7 @@ extern int client_local_port_mode; | |||
94 | /* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ | 94 | /* Forward stdin/stdout to remote machine - SSH ProxyCommand mode */ |
95 | extern int client_pipe_mode; | 95 | extern int client_pipe_mode; |
96 | /* Remote Tox ID in client mode */ | 96 | /* Remote Tox ID in client mode */ |
97 | extern char *remote_tox_id; | 97 | extern uint8_t *remote_tox_id; |
98 | /* Ports and hostname for port forwarding */ | 98 | /* Ports and hostname for port forwarding */ |
99 | extern int remote_port; | 99 | extern int remote_port; |
100 | extern char *remote_host; | 100 | extern char *remote_host; |
@@ -113,5 +113,9 @@ void update_select_nfds(int fd); | |||
113 | int send_frame(protocol_frame *frame, uint8_t *data); | 113 | int send_frame(protocol_frame *frame, uint8_t *data); |
114 | int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number); | 114 | int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number); |
115 | 115 | ||
116 | void update_select_nfds(int fd); | ||
117 | int send_frame(protocol_frame *frame, uint8_t *data); | ||
118 | int send_tunnel_request_packet(char *remote_host, int remote_port, int friend_number); | ||
119 | |||
116 | void print_version(void); | 120 | void print_version(void); |
117 | #endif | 121 | #endif |