X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol.h;h=392a1fe8578057be26ac81ac7df68bf8f9fd250f;hb=e7a81dd2124397ff6c308f30d66d8b994d699746;hp=42981ccaa9e4b807104f308d094167ff916721e8;hpb=42d2dff33306beae8ddbd9cc991ad80f135950a6;p=tinc diff --git a/src/protocol.h b/src/protocol.h index 42981cca..392a1fe8 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -80,11 +80,10 @@ extern ecdsa_t *invitation_key; /* Basic functions */ -extern bool send_request(struct connection_t *c, const char *format, ...) __attribute__((__format__(printf, 2, 3))); +extern bool send_request(struct connection_t *c, const char *format, ...) ATTR_FORMAT(printf, 2, 3); extern void forward_request(struct connection_t *c, const char *request); extern bool receive_request(struct connection_t *c, const char *request); -extern void init_requests(void); extern void exit_requests(void); extern bool seen_request(const char *request); @@ -107,7 +106,7 @@ extern void send_key_changed(void); extern bool send_req_key(struct node_t *to); extern bool send_ans_key(struct node_t *to); extern bool send_tcppacket(struct connection_t *c, const struct vpn_packet_t *packet); -extern bool send_sptps_tcppacket(struct connection_t *c, const char *packet, int len); +extern bool send_sptps_tcppacket(struct connection_t *c, const void *packet, size_t len); extern bool send_udp_info(struct node_t *from, struct node_t *to); extern bool send_mtu_info(struct node_t *from, struct node_t *to, int mtu);