diff options
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/bwcontroller.c | 2 | ||||
-rw-r--r-- | toxav/msi.c | 3 | ||||
-rw-r--r-- | toxav/rtp.c | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/toxav/bwcontroller.c b/toxav/bwcontroller.c index a38d71c0..5619c715 100644 --- a/toxav/bwcontroller.c +++ b/toxav/bwcontroller.c | |||
@@ -177,7 +177,7 @@ void send_update(BWController *bwc) | |||
177 | bwc->cycle.lsu = current_time_monotonic(); | 177 | bwc->cycle.lsu = current_time_monotonic(); |
178 | } | 178 | } |
179 | } | 179 | } |
180 | int on_update (BWController *bwc, struct BWCMessage *msg) | 180 | static int on_update (BWController *bwc, struct BWCMessage *msg) |
181 | { | 181 | { |
182 | LOGGER_DEBUG(bwc->m->log, "%p Got update from peer", bwc); | 182 | LOGGER_DEBUG(bwc->m->log, "%p Got update from peer", bwc); |
183 | 183 | ||
diff --git a/toxav/msi.c b/toxav/msi.c index a62bdb35..76c727a9 100644 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -682,7 +682,8 @@ void handle_init (MSICall *call, const MSIMessage *msg) | |||
682 | } | 682 | } |
683 | break; | 683 | break; |
684 | 684 | ||
685 | default: { | 685 | case msi_CallRequested: |
686 | case msi_CallRequesting: { | ||
686 | LOGGER_WARNING(call->session->messenger->log, "Session: %p Invalid state on 'init'"); | 687 | LOGGER_WARNING(call->session->messenger->log, "Session: %p Invalid state on 'init'"); |
687 | call->error = msi_EInvalidState; | 688 | call->error = msi_EInvalidState; |
688 | goto FAILURE; | 689 | goto FAILURE; |
diff --git a/toxav/rtp.c b/toxav/rtp.c index 38e64dd7..6e0c22b2 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -191,7 +191,7 @@ int rtp_send_data (RTPSession *session, const uint8_t *data, uint16_t length) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | 193 | ||
194 | bool chloss (const RTPSession *session, const struct RTPHeader *header) | 194 | static bool chloss (const RTPSession *session, const struct RTPHeader *header) |
195 | { | 195 | { |
196 | if (ntohl(header->timestamp) < session->rtimestamp) { | 196 | if (ntohl(header->timestamp) < session->rtimestamp) { |
197 | uint16_t hosq, lost = 0; | 197 | uint16_t hosq, lost = 0; |
@@ -213,7 +213,7 @@ bool chloss (const RTPSession *session, const struct RTPHeader *header) | |||
213 | 213 | ||
214 | return false; | 214 | return false; |
215 | } | 215 | } |
216 | struct RTPMessage *new_message (size_t allocate_len, const uint8_t *data, uint16_t data_length) | 216 | static struct RTPMessage *new_message (size_t allocate_len, const uint8_t *data, uint16_t data_length) |
217 | { | 217 | { |
218 | assert(allocate_len >= data_length); | 218 | assert(allocate_len >= data_length); |
219 | 219 | ||
@@ -246,7 +246,7 @@ int handle_rtp_packet (Messenger *m, uint32_t friendnumber, const uint8_t *data, | |||
246 | return -1; | 246 | return -1; |
247 | } | 247 | } |
248 | 248 | ||
249 | const struct RTPHeader *header = (struct RTPHeader *) data; | 249 | const struct RTPHeader *header = (const struct RTPHeader *) data; |
250 | 250 | ||
251 | if (header->pt != session->payload_type % 128) { | 251 | if (header->pt != session->payload_type % 128) { |
252 | LOGGER_WARNING(m->log, "Invalid payload type with the session"); | 252 | LOGGER_WARNING(m->log, "Invalid payload type with the session"); |