diff options
| author | Hauke Mehrtens | 2026-04-13 08:30:15 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-05-15 00:29:10 +0000 |
| commit | 93432149a7aea18953c5f2d89a7c25c56342d5f9 (patch) | |
| tree | eba6dd8482a853678d53d004a9299e118edbe0e7 | |
| parent | 53e7150619a3662226d1de408c5ac51f859c47f2 (diff) | |
| download | uhttpd-93432149a7aea18953c5f2d89a7c25c56342d5f9.tar.gz | |
utils: remove unreachable return statement in uh_addr_rfc1918
The function already returns the result of the range-check expression
on the preceding line. The `return 0;` statement that follows is
dead code and will never be executed. Remove it to eliminate the
compiler warning and avoid misleading readers.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -254,8 +254,6 @@ bool uh_addr_rfc1918(struct uh_addr *addr) return ((a >= 0x0A000000) && (a <= 0x0AFFFFFF)) || ((a >= 0xAC100000) && (a <= 0xAC1FFFFF)) || ((a >= 0xC0A80000) && (a <= 0xC0A8FFFF)); - - return 0; } |