sepfy / libpeer

WebRTC Library for IoT/Embedded Device using C
MIT License
804 stars 108 forks source link

Add return statements for non-void functions #36

Closed szsam closed 10 months ago

szsam commented 1 year ago

All functions that are not void should return a value on every exit path.

szsam commented 1 year ago

Additionally, please add return statements for the following functions: https://github.com/sepfy/pear/blob/8c6179ce338d98e735613bdc849bfa8027379366/src/sctp.c#L68 https://github.com/sepfy/pear/blob/8c6179ce338d98e735613bdc849bfa8027379366/src/sctp.c#L104-L105

sepfy commented 10 months ago

Thanks for your review, but in order to be compatible with more devices, this function will be modified