Skip to content

Commit

Permalink
Merge pull request #399 from iovisor/fix_398
Browse files Browse the repository at this point in the history
Fix syntax error in bpf_get_prandom_u32
  • Loading branch information
brendangregg committed Feb 18, 2016
2 parents 13e74d3 + aeb3698 commit 442573d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/export/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int (*bpf_probe_read)(void *dst, u64 size, void *unsafe_ptr) =
(void *) BPF_FUNC_probe_read;
static u64 (*bpf_ktime_get_ns)(void) =
(void *) BPF_FUNC_ktime_get_ns;
static u32 (*bpf_get_prandom_u32) =
static u32 (*bpf_get_prandom_u32)(void) =
(void *) BPF_FUNC_get_prandom_u32;
static int (*bpf_trace_printk_)(const char *fmt, u64 fmt_size, ...) =
(void *) BPF_FUNC_trace_printk;
Expand Down

0 comments on commit 442573d

Please sign in to comment.