diff options
author | araujo <araujo@FreeBSD.org> | 2015-08-25 15:32:08 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-08-25 15:32:08 +0000 |
commit | 9ff051aa1cc08152eef35ef635d5a4403a86cc95 (patch) | |
tree | 21d06071b944839e6ff3236ddeb50c094d261c7a /sbin/ipfw/tables.c | |
parent | 3ddee62f4a99a8b6dbced79f4702d17c75a95b64 (diff) | |
download | FreeBSD-src-9ff051aa1cc08152eef35ef635d5a4403a86cc95.zip FreeBSD-src-9ff051aa1cc08152eef35ef635d5a4403a86cc95.tar.gz |
Code cleanup unused-but-set-variable spotted by gcc.
Reviewed by: melifaro
Approved by: bapt (mentor)
Differential Revision: D3473
Diffstat (limited to 'sbin/ipfw/tables.c')
-rw-r--r-- | sbin/ipfw/tables.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c index 8a2c147..506d771 100644 --- a/sbin/ipfw/tables.c +++ b/sbin/ipfw/tables.c @@ -387,11 +387,9 @@ table_create(ipfw_obj_header *oh, int ac, char *av[]) ipfw_xtable_info xi; int error, tcmd, val; uint32_t fset, fclear; - size_t sz; char *e, *p; char tbuf[128]; - sz = sizeof(tbuf); memset(&xi, 0, sizeof(xi)); while (ac > 0) { @@ -494,10 +492,7 @@ table_modify(ipfw_obj_header *oh, int ac, char *av[]) { ipfw_xtable_info xi; int tcmd; - size_t sz; - char tbuf[128]; - sz = sizeof(tbuf); memset(&xi, 0, sizeof(xi)); while (ac > 0) { @@ -1449,14 +1444,13 @@ tentry_fill_value(ipfw_obj_header *oh, ipfw_obj_tentry *tent, char *arg, uint8_t type, uint32_t vmask) { struct addrinfo hints, *res; - uint32_t a4, flag, val, vm; + uint32_t a4, flag, val; ipfw_table_value *v; uint32_t i; int dval; char *comma, *e, *etype, *n, *p; v = &tent->v.value; - vm = vmask; /* Compat layer: keep old behavior for legacy value types */ if (vmask == IPFW_VTYPE_LEGACY) { |