]> pilppa.com Git - libplpbus.git/commitdiff
fix build warnings
authorMika Laitio <lamikr@pilppa.org>
Sat, 14 Jul 2012 14:02:37 +0000 (17:02 +0300)
committerMika Laitio <lamikr@pilppa.org>
Sat, 14 Jul 2012 14:02:37 +0000 (17:02 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/plpbus/BusMessage.cc
src/plpbus/OrbServerImpl.cc

index 47a7b7a11b46b246e5c7758ef78f440876706e73..1fbc724064dbf6fcb33070c6ce87319788d1503c 100644 (file)
@@ -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);
        }
 }
index 7085b216b08d581f3c17f3d8140c9a65595c27fa..4d4898e1a2e3fcf7b13f5b5d2035efd6b10fdc9b 100644 (file)
@@ -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);