diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-22 13:13:29 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-24 20:52:09 +0100 |
commit | 0d347c2b2e69aa09b079f6daaa00007fef4fe52f (patch) | |
tree | b5a7be0fa38218268fa08e2adf4c174be2349137 /toxav | |
parent | b588e0fdd307632eaa027db31aa8c11a14c99cef (diff) |
Minor cleanups: unused vars, unreachable code, static globals.
- All global variables should be static unless they have an explicit
extern declaration in a header file.
- `to_compare` was not used in encryptsave and toxav tests.
- `break` in switch cases is not required directly after `return`,
`goto`, or a noreturn function like `abort`.
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/msi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/toxav/msi.c b/toxav/msi.c index d80d7c76..39086567 100644 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -384,7 +384,6 @@ int msg_parse_in(Logger *log, MSIMessage *dest, const uint8_t *data, uint16_t le | |||
384 | default: | 384 | default: |
385 | LOGGER_ERROR(log, "Invalid id byte"); | 385 | LOGGER_ERROR(log, "Invalid id byte"); |
386 | return -1; | 386 | return -1; |
387 | break; | ||
388 | } | 387 | } |
389 | } | 388 | } |
390 | 389 | ||
@@ -689,7 +688,6 @@ void handle_init(MSICall *call, const MSIMessage *msg) | |||
689 | call->error = msi_EInvalidState; | 688 | call->error = msi_EInvalidState; |
690 | goto FAILURE; | 689 | goto FAILURE; |
691 | } | 690 | } |
692 | break; | ||
693 | } | 691 | } |
694 | 692 | ||
695 | return; | 693 | return; |
@@ -771,7 +769,6 @@ void handle_pop(MSICall *call, const MSIMessage *msg) | |||
771 | LOGGER_ERROR(call->session->messenger->log, "Handling what should be impossible case"); | 769 | LOGGER_ERROR(call->session->messenger->log, "Handling what should be impossible case"); |
772 | abort(); | 770 | abort(); |
773 | } | 771 | } |
774 | break; | ||
775 | 772 | ||
776 | case msi_CallActive: { | 773 | case msi_CallActive: { |
777 | /* Hangup */ | 774 | /* Hangup */ |