shaperd (0.2.1-5.2) src/classdef.cpp

Summary

 src/classdef.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- shaperd-0.2.1.orig/src/classdef.cpp
+++ shaperd-0.2.1/src/classdef.cpp
@@ -103,7 +103,7 @@
 {
 	packet_classifier **new_vector;
 
-	new_vector = new(nothrow) (packet_classifier*)[n_classifiers+1];
+	new_vector = new(nothrow) packet_classifier*[n_classifiers+1];
 	if( new_vector==0 ) goto __err_new;
 
 	if( n_classifiers>0 ) {
@@ -270,7 +270,7 @@
 		v_classifiers[i]->set_real_prio(r_pr);
 	}
 
-	v_queues = new(nothrow) (queue<generic_packet*>)[n];
+	v_queues = new(nothrow) queue<generic_packet*>[n];
 	if( v_queues==0 ) {
 		log_info(LL_ALERT, "no memory for queue {%s:%d}", 
 			__FILE__, __LINE__);