Fix sparse warnings and add an extra sprinkling of const.
This is more or less the equivalent of Sven-Haegar Koch's fixes in the 1.1 branch.
This commit is contained in:
parent
07ffb1a198
commit
6d08eb1614
35 changed files with 83 additions and 75 deletions
|
|
@ -119,7 +119,7 @@ bool pong_h(connection_t *c) {
|
|||
|
||||
/* Sending and receiving packets via TCP */
|
||||
|
||||
bool send_tcppacket(connection_t *c, vpn_packet_t *packet) {
|
||||
bool send_tcppacket(connection_t *c, const vpn_packet_t *packet) {
|
||||
/* If there already is a lot of data in the outbuf buffer, discard this packet.
|
||||
We use a very simple Random Early Drop algorithm. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue