Commit Graph
4 Commits
Author SHA1 Message Date
Syrone Wong 58264c77fc Polish code
code issues found by Clang with
CFLAGS="-Os -Wall -Wextra -Werror=unused-const-variable -Wno-error=unused-parameter"
enabled

The details as follows:
- variable initialization issue, modified them as Clang suggested
- data type mismatch when comparing, fix them either by casting or changing
  the data type of index of iterator
- get_sockaddr() in netutils may return -1 thus changed returning type from
  size_t to ssize_t, which makes Clang happier
- recvfrom() in udprelay is identical, fix this by creating local variable
  for comparison  and assign back to buf->len when returning value is acceptable

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-04-07 21:28:23 -07:00
Max Lv cf04f73a98 refine buffer handling 2014-08-01 13:35:46 +08:00
Max Lv 182c81d14d fix #80 2014-06-19 20:44:23 +08:00
Max Lv 8be020efd5 add libipset 2014-05-07 12:05:03 +08:00