diff options
author | Nikias Bassen | 2019-01-28 05:17:25 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-01-28 05:17:25 +0100 |
commit | 1e2ede1f8a972670370c0621d42e54d7cf719766 (patch) | |
tree | 48351472fc256e46f9ad3ec5658e8e3e70eb1da7 /src | |
parent | 8a7f0e58921b82fe3ca82f47d4c04301803e1ecf (diff) | |
download | libirecovery-1e2ede1f8a972670370c0621d42e54d7cf719766.tar.gz libirecovery-1e2ede1f8a972670370c0621d42e54d7cf719766.tar.bz2 |
libirecovery: Add missing break statements to switch cases
Diffstat (limited to 'src')
-rw-r--r-- | src/libirecovery.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 6e553eb..02d0075 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -1541,9 +1541,11 @@ IRECV_API irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event case IRECV_PROGRESS: client->progress_callback = callback; + break; case IRECV_CONNECTED: client->connected_callback = callback; + break; case IRECV_PRECOMMAND: client->precommand_callback = callback; @@ -1555,6 +1557,7 @@ IRECV_API irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event case IRECV_DISCONNECTED: client->disconnected_callback = callback; + break; default: return IRECV_E_UNKNOWN_ERROR; @@ -1575,9 +1578,11 @@ IRECV_API irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_eve case IRECV_PROGRESS: client->progress_callback = NULL; + break; case IRECV_CONNECTED: client->connected_callback = NULL; + break; case IRECV_PRECOMMAND: client->precommand_callback = NULL; @@ -1589,6 +1594,7 @@ IRECV_API irecv_error_t irecv_event_unsubscribe(irecv_client_t client, irecv_eve case IRECV_DISCONNECTED: client->disconnected_callback = NULL; + break; default: return IRECV_E_UNKNOWN_ERROR; |