Skip to content

Commit e0251a0

Browse files
committed
docs: remove redundant c_int64 calls from quickstart
1 parent f03c087 commit e0251a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ from ctypes import c_void_p, c_int64
1818
@section("tracepoint/syscalls/sys_enter_execve")
1919
def hello_world(ctx: c_void_p) -> c_int64:
2020
print("Hello, World!")
21-
return c_int64(0)
21+
return 0
2222

2323
@bpf
2424
@bpfglobal
@@ -172,7 +172,7 @@ Kprobes allow you to attach to any kernel function:
172172
@section("kprobe/do_sys_open")
173173
def trace_open(ctx: c_void_p) -> c_int64:
174174
print("File is being opened")
175-
return c_int64(0)
175+
return 0
176176
```
177177

178178
### XDP (eXpress Data Path)

0 commit comments

Comments
 (0)