Skip to content

Commit

Permalink
fixed compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Apr 23, 2024
1 parent e00460f commit 2a56fa2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/irisnet/noncore/sctp/SctpAssociation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,8 @@ void SctpAssociation::OnUsrSctpReceiveSctpNotification(union sctp_notification *
case SCTP_STREAM_RESET_EVENT: {
bool incoming { false };
bool outgoing { false };
uint16_t numStreams = (notification->sn_strreset_event.strreset_length - sizeof(struct sctp_stream_reset_event))
/ sizeof(uint16_t);
uint16_t numStreams = uint16_t((notification->sn_strreset_event.strreset_length - sizeof(struct sctp_stream_reset_event))
/ sizeof(uint16_t));

if (notification->sn_strreset_event.strreset_flags & SCTP_STREAM_RESET_INCOMING_SSN)
incoming = true;
Expand Down
2 changes: 1 addition & 1 deletion src/irisnet/noncore/sctp/SctpAssociation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SctpAssociation {
virtual void OnSctpAssociationMessageReceived(RTC::SctpAssociation *sctpAssociation, uint16_t streamId,
uint32_t ppid, const uint8_t *msg, size_t len)
= 0;
virtual void OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, uint32_t len) = 0;
virtual void OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, size_t len) = 0;
virtual void OnSctpStreamClosed(RTC::SctpAssociation *sctpAssociation, uint16_t streamId) = 0;
};

Expand Down
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/jingle-sctp-association_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace XMPP { namespace Jingle { namespace SCTP {
* @param sctpAssociation
* @param len - number of bytes currently buffered in usrsctp. not more than MAX_SEND_BUFFER_SIZE
*/
void AssociationPrivate::OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, uint32_t len)
void AssociationPrivate::OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, size_t len)
{
// qDebug("jignle-sctp: on buffered data: %d", len);
Q_UNUSED(sctpAssociation);
Expand Down
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/jingle-sctp-association_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace XMPP { namespace Jingle { namespace SCTP {
void OnSctpAssociationSendData(RTC::SctpAssociation *, const uint8_t *data, size_t len) override;
void OnSctpAssociationMessageReceived(RTC::SctpAssociation *, uint16_t streamId, uint32_t ppid,
const uint8_t *msg, size_t len) override;
void OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, uint32_t len) override;
void OnSctpAssociationBufferedAmount(RTC::SctpAssociation *sctpAssociation, size_t len) override;
void OnSctpStreamClosed(RTC::SctpAssociation *sctpAssociation, uint16_t streamId) override;

void handleIncomingDataChannelOpen(const QByteArray &data, quint16 streamId);
Expand Down

0 comments on commit 2a56fa2

Please sign in to comment.