summaryrefslogtreecommitdiff
path: root/chromium/sandbox/linux/seccomp-bpf/instruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/sandbox/linux/seccomp-bpf/instruction.h')
-rw-r--r--chromium/sandbox/linux/seccomp-bpf/instruction.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/chromium/sandbox/linux/seccomp-bpf/instruction.h b/chromium/sandbox/linux/seccomp-bpf/instruction.h
index 0fc8123280e..8567c8fd91c 100644
--- a/chromium/sandbox/linux/seccomp-bpf/instruction.h
+++ b/chromium/sandbox/linux/seccomp-bpf/instruction.h
@@ -7,8 +7,7 @@
#include <stdint.h>
-
-namespace playground2 {
+namespace sandbox {
// The fields in this structure have the same meaning as the corresponding
// fields in "struct sock_filter". See <linux/filter.h> for a lot more
@@ -27,12 +26,12 @@ namespace playground2 {
struct Instruction {
// Constructor for an non-jumping instruction or for an unconditional
// "always" jump.
- Instruction(uint16_t c, uint32_t parm, Instruction *n) :
- code(c), next(n), k(parm) { }
+ Instruction(uint16_t c, uint32_t parm, Instruction* n)
+ : code(c), next(n), k(parm) {}
// Constructor for a conditional jump instruction.
- Instruction(uint16_t c, uint32_t parm, Instruction *jt, Instruction *jf) :
- code(c), jt_ptr(jt), jf_ptr(jf), k(parm) { }
+ Instruction(uint16_t c, uint32_t parm, Instruction* jt, Instruction* jf)
+ : code(c), jt_ptr(jt), jf_ptr(jf), k(parm) {}
uint16_t code;
union {
@@ -47,17 +46,17 @@ struct Instruction {
// keys in a TargetsToBlocks map and should no longer be dereferenced
// directly.
struct {
- Instruction *jt_ptr, *jf_ptr;
+ Instruction* jt_ptr, *jf_ptr;
};
// While assembling the BPF program, non-jumping instructions are linked
// by the "next_" pointer. This field is no longer needed when we have
// computed basic blocks.
- Instruction *next;
+ Instruction* next;
};
uint32_t k;
};
-} // namespace
+} // namespace sandbox
#endif // SANDBOX_LINUX_SECCOMP_BPF_INSTRUCTION_H__