From b676a5ebb480130a92974f5d6cbf2759d04f0453 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Tue, 14 Oct 2025 17:05:05 +0530 Subject: [PATCH] Fix return in BCC-Examples --- BCC-Examples/hello_fields.py | 2 +- BCC-Examples/hello_world.py | 2 +- BCC-Examples/sync_timing.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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