diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
commit | b35d79b1feee163600305db7dcde9b4a7150f1cc (patch) | |
tree | 19ee96cfb175829218a7b7dcde74f963aaed2a2e /src/anytun.cpp | |
parent | updated changelog (diff) |
while(1) vs. for(;;)
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); |