Simplify and tidy netint.[ch], tube.c and add netint tests. by dbaarda · Pull Request #183 · librsync/librsync
added 4 commits
December 3, 2019 18:57Add tests/netint_test.c and CMakeLists.txt changes to test rs_int_len(). In netint.[ch] replace runtime checks for invalid arguments with assert() statements and tidy the argument names, variable names, and ordering. Replace `unsigned char` arguments with `rs_byte_t`. Add an assert to rs_int_len() to require the argument is positive.
dbaarda
changed the title
Tidy netint.[ch] and add tests.
Simplify and tidy netint.[ch], tube.c and add netint tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters