]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Fix sparse warnings and add an extra sprinkling of const.
[meshlink] / src / net_packet.c
index c7efa8869e9d1d3ae544b007be368f9b13f60022..062523e50417f7c6e7c81bdab9de04db15e24204 100644 (file)
@@ -365,7 +365,7 @@ static void receive_udppacket(node_t *n, vpn_packet_t *inpkt) {
                receive_packet(n, inpkt);
 }
 
-void receive_tcppacket(connection_t *c, char *buffer, int len) {
+void receive_tcppacket(connection_t *c, const char *buffer, int len) {
        vpn_packet_t outpkt;
 
        outpkt.len = len;