X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol.h;h=6f01a76c947a84a50b2ccbd17d0214e6163cd1ea;hp=f782523ed165712e534e7176286b36666a158c1d;hb=e449d94caef963809d417f16497f6f978e10d731;hpb=f75dcef72a81a337e847adf0bae54198894f65b9 diff --git a/src/protocol.h b/src/protocol.h index f782523e..6f01a76c 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -17,15 +17,15 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: protocol.h,v 1.5.4.35 2002/09/09 21:24:42 guus Exp $ + $Id: protocol.h,v 1.5.4.39 2003/07/17 15:06:26 guus Exp $ */ #ifndef __TINC_PROTOCOL_H__ #define __TINC_PROTOCOL_H__ +#include "edge.h" #include "net.h" #include "node.h" -#include "edge.h" #include "subnet.h" /* Protocol version. Different versions are incompatible, @@ -60,7 +60,7 @@ typedef struct past_request_t { /* Basic functions */ -extern int send_request(connection_t *, const char *, ...); +extern int send_request(connection_t *, const char *, ...) __attribute__ ((format(printf, 2, 3))); extern int forward_request(connection_t *); extern int receive_request(connection_t *); extern int check_id(char *); @@ -93,8 +93,6 @@ extern int send_tcppacket(connection_t *, vpn_packet_t *); /* Request handlers */ -extern int (*request_handlers[]) (connection_t *); - extern int id_h(connection_t *); extern int metakey_h(connection_t *); extern int challenge_h(connection_t *);