Commit eae6447d authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Fix Python warnings.

parent c70109a4
Pipeline #1662 passed with stages
in 1 minute and 34 seconds
......@@ -505,7 +505,6 @@ bool PrrtSocket_cleanup(PrrtSocket *s) {
PrrtDataPacketStore_remove_range(s->dataPacketStore, list, firstSequenceNumberBase,
last->sequenceNumber);
uint32_t dataPacketListSize = List_count(list);
while (List_count(list) > 0) {
PrrtPacket *packet = (PrrtPacket *) List_shift(list);
PrrtPacket_destroy(packet);
......@@ -516,10 +515,6 @@ bool PrrtSocket_cleanup(PrrtSocket *s) {
PrrtPacketTimeout *packetTimeout = (PrrtPacketTimeout *) List_shift(expired_packets);
PrrtPacketTimeout_destroy(packetTimeout);
}
debug(DEBUG_SOCKET, "Cleanup: [%d, %d, %d] expiring %d, data store: %d", firstSequenceNumberBase,
lastSequenceNumberBase, last->sequenceNumber, expired_count, dataPacketListSize);
}
List_destroy(expired_packets);
}
......
......@@ -10,7 +10,7 @@ typedef struct prrtReceiveDataQueue {
pthread_cond_t wait_for_data;
} PrrtReceiveDataQueue;
PrrtReceiveDataQueue* PrrtReceiveDataQueue_create();
PrrtReceiveDataQueue* PrrtReceiveDataQueue_create(void);
PrrtPacket *PrrtReceiveDataQueue_get_packet(PrrtReceiveDataQueue *q, prrtTimestamp_t start, prrtTimestamp_t stop);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment