summaryrefslogtreecommitdiffstats
path: root/libiptc/libiptc.c
diff options
context:
space:
mode:
authorrusty <rusty>2000-03-20 07:03:28 +0000
committerrusty <rusty>2000-03-20 07:03:28 +0000
commit03d3d33397da4fea028a55c5adbd65facf293660 (patch)
tree0e89f4764091ddd97f6c18e7033060501f72fe3c /libiptc/libiptc.c
parent5c306289b8a78a060a12eba5cd86e0efc3533da0 (diff)
Makefile fixes for release.svn_t_nf-post-merge-1-0-0alpha
Whitespace cleanups.
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r--libiptc/libiptc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 9109703..e96c0a9 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);