diff options
author | Rusty Russell <rusty@linuxcare.com.au> | 2000-03-20 07:03:28 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-03-20 07:03:28 +0000 |
commit | 7e53bf9c2a697abdb6f1385557338423a86612a3 (patch) | |
tree | 0e89f4764091ddd97f6c18e7033060501f72fe3c /libiptc/libiptc.c | |
parent | e6869a8f59d779ff4d5a0984c86d80db70784962 (diff) |
Makefile fixes for release.v1.0.0-alpha
Whitespace cleanups.
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r-- | libiptc/libiptc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 91097033..e96c0a97 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -248,7 +248,7 @@ iptc_init(const char *tablename) free(h); return NULL; } - + CHECK(h); return h; } @@ -802,7 +802,7 @@ standard_map(struct ipt_entry *e, int verdict) return 1; } - + static int map_target(const iptc_handle_t handle, struct ipt_entry *e, @@ -1096,7 +1096,7 @@ iptc_delete_entry(const ipt_chainlabel chain, free(fw); errno = ENOENT; return 0; -} +} /* Delete the rule in position `rulenum' in `chain'. */ int @@ -1179,7 +1179,7 @@ int iptc_zero_entries(const ipt_chainlabel chain, iptc_handle_t *handle) { unsigned int i, end; - + CHECK(*handle); if (!find_label(&i, chain, *handle)) { errno = ENOENT; @@ -1305,7 +1305,7 @@ iptc_delete_chain(const ipt_chainlabel chain, iptc_handle_t *handle) CHECK(*handle); if (!iptc_get_references(&references, chain, handle)) return 0; - + iptc_fn = iptc_delete_chain; if (iptc_builtin(chain, *handle)) { @@ -1483,7 +1483,7 @@ iptc_commit(iptc_handle_t *handle) errno = ENOMEM; return 0; } - + /* These are the counters we're going to put back, later. */ newcounters = malloc(counterlen); if (!newcounters) { @@ -1550,7 +1550,7 @@ iptc_commit(iptc_handle_t *handle) } } - if (setsockopt(sockfd, IPPROTO_IP, IPT_SO_SET_ADD_COUNTERS, + if (setsockopt(sockfd, IPPROTO_IP, IPT_SO_SET_ADD_COUNTERS, newcounters, counterlen) < 0) { free(repl->counters); free(repl); |