From b35d79b1feee163600305db7dcde9b4a7150f1cc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 28 Jun 2014 18:59:22 +0000 Subject: while(1) vs. for(;;) --- src/anytun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/anytun.cpp') 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); -- cgit v1.2.3