summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2015-05-06 15:36:41 -0400
committerPaul Moore <pmoore@redhat.com>2015-05-06 15:36:41 -0400
commit9a4ec0a07c99b75a9c9f111db2cf2708606f37db (patch)
tree39107986c19281cc79fae73aa9244e6b15b0daf9
parenteece06525d58d08fe6bb20e5f635eb02fd8d6eee (diff)
downloadlibseccomp-9a4ec0a07c99b75a9c9f111db2cf2708606f37db.tar.gz
bpf: fix a style-o
That would be a type-o which results in bad style :) Signed-off-by: Paul Moore <pmoore@redhat.com> (imported from commit f530cb495857c3d9fcf9d82b74893aec9caa6053)
-rw-r--r--src/gen_bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_bpf.c b/src/gen_bpf.c
index cfff2e0..175bf6b 100644
--- a/src/gen_bpf.c
+++ b/src/gen_bpf.c
@@ -382,7 +382,7 @@ static struct bpf_blk *_blk_append(struct bpf_state *state,
}
if (_blk_resize(state, blk, 1) == NULL)
- return NULL;
+ return NULL;
memcpy(&blk->blks[blk->blk_cnt++], instr, sizeof(*instr));
return blk;
@@ -409,7 +409,7 @@ static struct bpf_blk *_blk_prepend(struct bpf_state *state,
return _blk_append(state, blk, instr);
if (_blk_resize(state, blk, 1) == NULL)
- return NULL;
+ return NULL;
memmove(&blk->blks[1], &blk->blks[0], blk->blk_cnt++ * sizeof(*instr));
memcpy(&blk->blks[0], instr, sizeof(*instr));