summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_tcp.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-01-27 17:24:34 +0100
committerJan Engelhardt <jengelh@medozas.de>2009-01-27 23:14:26 +0100
commit213e185afbb298e6708881e4c2adffdc47a8b6da (patch)
tree1e37c6e65c7541794742b3f08acfb2517d198ed3 /extensions/libxt_tcp.c
parent825c317eedc12e1c8c93e22a96bc423d27b3c1f4 (diff)
src: remove redundant casts
All of them are implicitly convertable without any wanted side effects. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_tcp.c')
-rw-r--r--extensions/libxt_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_tcp.c b/extensions/libxt_tcp.c
index 14d8c186..a9039f0b 100644
--- a/extensions/libxt_tcp.c
+++ b/extensions/libxt_tcp.c
@@ -124,7 +124,7 @@ parse_tcp_option(const char *option, u_int8_t *result)
if (string_to_number(option, 1, 255, &ret) == -1)
exit_error(PARAMETER_PROBLEM, "Bad TCP option `%s'", option);
- *result = (u_int8_t)ret;
+ *result = ret;
}
static void tcp_init(struct xt_entry_match *m)