mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Comment intentional switch fallthroughs
This commit is contained in:
parent
a35be20e6a
commit
27a1626084
|
@ -682,7 +682,7 @@ void handle_init (MSICall *call, const MSIMessage *msg)
|
|||
}
|
||||
break;
|
||||
|
||||
case msi_CallRequested:
|
||||
case msi_CallRequested: // fall-through
|
||||
case msi_CallRequesting: {
|
||||
LOGGER_WARNING(call->session->messenger->log, "Session: %p Invalid state on 'init'");
|
||||
call->error = msi_EInvalidState;
|
||||
|
@ -738,7 +738,7 @@ void handle_push (MSICall *call, const MSIMessage *msg)
|
|||
break;
|
||||
|
||||
/* Pushes during initialization state are ignored */
|
||||
case msi_CallInactive:
|
||||
case msi_CallInactive: // fall-through
|
||||
case msi_CallRequested: {
|
||||
LOGGER_WARNING(call->session->messenger->log, "Ignoring invalid push");
|
||||
}
|
||||
|
|
|
@ -2158,7 +2158,7 @@ static int handle_packet(void *object, int i, const uint8_t *temp, uint16_t len,
|
|||
break;
|
||||
}
|
||||
|
||||
case PACKET_ID_MESSAGE:
|
||||
case PACKET_ID_MESSAGE: // fall-through
|
||||
case PACKET_ID_ACTION: {
|
||||
if (data_length == 0) {
|
||||
break;
|
||||
|
|
|
@ -1058,7 +1058,7 @@ bool tox_file_seek(Tox *tox, uint32_t friend_number, uint32_t file_number, uint6
|
|||
SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_NOT_FOUND);
|
||||
return 0;
|
||||
|
||||
case -4:
|
||||
case -4: // fall-through
|
||||
case -5:
|
||||
SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEEK_DENIED);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user