Browse Source
Polish code
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>pull/575/head
committed by
Max Lv
8 changed files with 34 additions and 26 deletions
Split View
Diff Options
-
3libipset/bdd/write.c
-
13src/encrypt.c
-
4src/jconf.c
-
8src/json.c
-
12src/local.c
-
2src/netutils.c
-
2src/netutils.h
-
16src/udprelay.c
Write
Preview
Loading…
Cancel
Save