summaryrefslogtreecommitdiffstats
path: root/src/usb-linux.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-09-17 11:56:34 +0200
committerGravatar Nikias Bassen2013-09-17 11:56:34 +0200
commit9b525ba69fff75f3a1cbc755b8da285d1f7286cf (patch)
tree83c5cb28ed260dcc926cdb5561240aef33d8f394 /src/usb-linux.c
parentf4758e8b15cd30fe3f7f18de42e2ea20bc5696f0 (diff)
downloadusbmuxd-9b525ba69fff75f3a1cbc755b8da285d1f7286cf.tar.gz
usbmuxd-9b525ba69fff75f3a1cbc755b8da285d1f7286cf.tar.bz2
silence several compiler warnings
Diffstat (limited to 'src/usb-linux.c')
-rw-r--r--src/usb-linux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usb-linux.c b/src/usb-linux.c
index 334d967..f937de0 100644
--- a/src/usb-linux.c
+++ b/src/usb-linux.c
@@ -121,6 +121,9 @@ static void tx_callback(struct libusb_transfer *xfer)
usbmuxd_log(LL_ERROR, "TX transfer overflow for device %d-%d", dev->bus, dev->address);
break;
// and nothing happens (this never gets called) if the device is freed after a disconnect! (bad)
+ default:
+ // this should never be reached.
+ break;
}
// we can't usb_disconnect here due to a deadlock, so instead mark it as dead and reap it after processing events
// we'll do device_remove there too
@@ -190,6 +193,9 @@ static void rx_callback(struct libusb_transfer *xfer)
usbmuxd_log(LL_ERROR, "RX transfer overflow for device %d-%d", dev->bus, dev->address);
break;
// and nothing happens (this never gets called) if the device is freed after a disconnect! (bad)
+ default:
+ // this should never be reached.
+ break;
}
free(xfer->buffer);
dev->rx_xfer = NULL;