mcproxy: fix up sourcefilter patch 476/head
authorJohn Crispin <john@phrozen.org>
Sun, 30 Jun 2019 11:03:23 +0000 (13:03 +0200)
committerJohn Crispin <john@phrozen.org>
Sun, 30 Jun 2019 11:03:23 +0000 (13:03 +0200)
commitff7c509caa61e41b4a740c30384cf3290124d9bd
treefc93d1a8a955c66ac5cde19e1d3d8225bbd0e837
parenta56d996b94682c90729ad9b561168635b857649c
mcproxy: fix up sourcefilter patch

this spewed out 2 compile warnings

In file included from build_dir/target-mipsel_24kc_musl/mcproxy-2017-08-24-93b5ace42268160ebbfff4c61818fb15fa2d9b99/mcproxy/src/utils/mc_socket.cpp:43:0:

build_dir/target-mipsel_24kc_musl/mcproxy-2017-08-24-93b5ace42268160ebbfff4c61818fb15fa2d9b99/mcproxy/src/utils/sourcefilter.cpp: In function 'int setsourcefilter(int, uint32_t, const sockaddr*, socklen_t, uint32_t, uint32_t, const sockaddr_storage*)':
build_dir/target-mipsel_24kc_musl/mcproxy-2017-08-24-93b5ace42268160ebbfff4c61818fb15fa2d9b99/mcproxy/src/utils/sourcefilter.cpp:157:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else
   ^~~~
build_dir/target-mipsel_24kc_musl/mcproxy-2017-08-24-93b5ace42268160ebbfff4c61818fb15fa2d9b99/mcproxy/src/utils/sourcefilter.cpp:160:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
     int save_errno = errno;
     ^~~

Signed-off-by: John Crispin <john@phrozen.org>
mcproxy/patches/0003-add-sourcefilter.patch