From: Mika Laitio Date: Sat, 14 Jul 2012 14:02:37 +0000 (+0300) Subject: fix build warnings X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8d8f86ae288245111e80196ea1b03aca6e4febc3;p=libplpbus.git fix build warnings Signed-off-by: Mika Laitio --- diff --git a/src/plpbus/BusMessage.cc b/src/plpbus/BusMessage.cc index 47a7b7a..1fbc724 100644 --- a/src/plpbus/BusMessage.cc +++ b/src/plpbus/BusMessage.cc @@ -40,23 +40,11 @@ BusMessage::BusMessage(long type_param, } BusMessage::~BusMessage() { - long cnt; DataItemSequence *seq; log_debug("\n"); seq = (DataItemSequence *)_dataItemSeq; if (seq != NULL) { - cnt = seq->length(); -/* - DataItem *item; - - for (long ii = 0; ii < cnt; ii++) { - item = seq[ii]; - log_debug("deleting BusMessage item:\n"); - printout_dataitem(ii, item); - delete(item); - } -*/ delete(seq); } } diff --git a/src/plpbus/OrbServerImpl.cc b/src/plpbus/OrbServerImpl.cc index 7085b21..4d4898e 100644 --- a/src/plpbus/OrbServerImpl.cc +++ b/src/plpbus/OrbServerImpl.cc @@ -93,7 +93,7 @@ void OrbServerImpl::send_dataitem_message_and_request_response(OrbClient_ptr res msg_rsp = new BusMessage(msg_req->get_type(&err_flg)); _listener->request_received(msg_req, msg_rsp); seq = (DataItemSequence *)msg_rsp->_dataItemSeq; - log_debug("msg_rsp length: %ld\n", seq->length()); + log_debug("msg_rsp length: %u\n", seq->length()); msg_rsp->printout(); response_listener_param->receive_response_dataitem_sequence(*seq); delete(msg_req);