Skip to content

Commit

Permalink
fix: cppcheck style: inconclusive:
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Sep 12, 2023
1 parent 55f5a61 commit 2d3777c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions toxav/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ static int handle_video_packet(const Logger *log, RTPSession *session, const str
/**
* receive custom lossypackets and process them. they can be incoming audio or video packets
*/
void handle_rtp_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, size_t length2, void *dummy)
void handle_rtp_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, size_t pkt_length, void *object)
{
// TODO(Zoff): is this ok?
uint16_t length = (uint16_t)length2;
uint16_t length = (uint16_t)pkt_length;

ToxAV *toxav = (ToxAV *)tox_get_av_object(tox);

Expand Down
2 changes: 1 addition & 1 deletion toxav/rtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ typedef struct RTPSession {
} RTPSession;


void handle_rtp_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, size_t length, void *object);
void handle_rtp_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, size_t pkt_length, void *object);

/**
* Serialise an RTPHeader to bytes to be sent over the network.
Expand Down
6 changes: 3 additions & 3 deletions toxav/toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -1584,11 +1584,11 @@ static void call_kill_transmission(ToxAVCall *call)
pthread_mutex_destroy(call->mutex_video);
}

Mono_Time *toxav_get_av_mono_time(ToxAV *toxav)
Mono_Time *toxav_get_av_mono_time(ToxAV *av)
{
if (toxav == nullptr) {
if (av == nullptr) {
return nullptr;
}

return toxav->toxav_mono_time;
return av->toxav_mono_time;
}
4 changes: 2 additions & 2 deletions toxav/toxav_hacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ToxAVCall *call_get(ToxAV *av, uint32_t friend_number);
RTPSession *rtp_session_get(ToxAVCall *call, int payload_type);
MSISession *tox_av_msi_get(ToxAV *av);
BWController *bwc_controller_get(ToxAVCall *call);
Mono_Time *toxav_get_av_mono_time(ToxAV *toxav);
Logger *toxav_get_logger(ToxAV *toxav);
Mono_Time *toxav_get_av_mono_time(ToxAV *av);
Logger *toxav_get_logger(ToxAV *av);

#endif // C_TOXCORE_TOXAV_HACKS_H

0 comments on commit 2d3777c

Please sign in to comment.