X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2FroutingTreeNode.cpp;h=9d652486275bd8699e619d102fdc8aad0864332e;hp=e50ff703cf96f68a37a56b3e9ec5cc48fe6d94ff;hb=ef0cacf2508418915d3f64b04003be3c13fed3cc;hpb=ece844834d2cecc028ce81ca283f5d441088580e diff --git a/src/routingTreeNode.cpp b/src/routingTreeNode.cpp index e50ff70..9d65248 100644 --- a/src/routingTreeNode.cpp +++ b/src/routingTreeNode.cpp @@ -11,7 +11,7 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner * * This file is part of Anytun. @@ -34,32 +34,32 @@ RoutingTreeNode::RoutingTreeNode():mux_(0),valid_(false) { - for(int i=0; i<256; i++) - nodes_[i]=NULL; + for(int i=0; i<256; i++) { + nodes_[i]=NULL; + } } void RoutingTreeNode::print(int level) const { - if (valid_) - { - std::cout << " -> " <print(level+1); - } - } + if(valid_) { + std::cout << " -> " <print(level+1); + } + } } RoutingTreeNode::~RoutingTreeNode() { - for(int i=0; i<256; i++) - if(nodes_[i]) - delete nodes_[i]; -} + for(int i=0; i<256; i++) + if(nodes_[i]) { + delete nodes_[i]; + } +}