diff --git a/BCC-Examples/hello_fields.py b/BCC-Examples/hello_fields.py index 3a52fc1..8a2464a 100644 --- a/BCC-Examples/hello_fields.py +++ b/BCC-Examples/hello_fields.py @@ -6,7 +6,7 @@ from ctypes import c_void_p, c_int64 @section("tracepoint/syscalls/sys_enter_clone") def hello_world(ctx: c_void_p) -> c_int64: print("Hello, World!") - return c_int64(0) + return 0 # type: ignore [return-value] @bpf diff --git a/BCC-Examples/hello_world.py b/BCC-Examples/hello_world.py index ff51731..4b5647b 100644 --- a/BCC-Examples/hello_world.py +++ b/BCC-Examples/hello_world.py @@ -6,7 +6,7 @@ from ctypes import c_void_p, c_int64 @section("tracepoint/syscalls/sys_enter_clone") def hello_world(ctx: c_void_p) -> c_int64: print("Hello, World!") - return c_int64(0) + return 0 # type: ignore [return-value] @bpf diff --git a/BCC-Examples/sync_timing.py b/BCC-Examples/sync_timing.py index 37d6a03..448caba 100644 --- a/BCC-Examples/sync_timing.py +++ b/BCC-Examples/sync_timing.py @@ -24,7 +24,7 @@ def do_trace(ctx: c_void_p) -> c_int64: last.delete(key) else: last.update(key, ktime()) - return c_int64(0) + return 0 # type: ignore [return-value] @bpf