diff options
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index f08ed52..a2ed567 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -146,7 +146,7 @@ void sender(TunDevice* dev, PacketSource* src) uint16_t mux = gOpt.getMux(); PacketSourceEndpoint emptyEndpoint; - while(1) { + for(;;) { plain_packet.setLength(MAX_PACKET_LENGTH); encrypted_packet.withAuthTag(false); encrypted_packet.setLength(MAX_PACKET_LENGTH); @@ -237,7 +237,7 @@ void receiver(TunDevice* dev, PacketSource* src) EncryptedPacket encrypted_packet(MAX_PACKET_LENGTH, auth_tag_length); PlainPacket plain_packet(MAX_PACKET_LENGTH); - while(1) { + for(;;) { PacketSourceEndpoint remote_end; plain_packet.setLength(MAX_PACKET_LENGTH); |