13
0

fix const-cast

This commit is contained in:
Robin Gareus 2016-11-12 16:20:43 +01:00
parent f217487aff
commit 43bd7f5db1

View File

@ -57,7 +57,7 @@ static void notifyProc (const MIDINotification *message, void *refCon) {
static void print_packet (const MIDIPacket *p) {
fprintf (stderr, "CoreMIDI: Packet %d bytes [ ", p->length);
for (int bb = 0; bb < p->length; ++bb) {
fprintf (stderr, "%02x ", ((uint8_t*)p->data)[bb]);
fprintf (stderr, "%02x ", ((const uint8_t*)p->data)[bb]);
}
fprintf (stderr, "]\n");
}