Skip to content

fix: correct GSourceFunc signature for get_cpu_usage#9

Open
drvenabili wants to merge 1 commit into
chux0519:masterfrom
drvenabili:fix/func-signatures
Open

fix: correct GSourceFunc signature for get_cpu_usage#9
drvenabili wants to merge 1 commit into
chux0519:masterfrom
drvenabili:fix/func-signatures

Conversation

@drvenabili

Copy link
Copy Markdown

This pull request makes a minor update to the get_cpu_usage function signature in main.c to accept a gpointer data argument, which is a common pattern for callback functions in GTK applications. The unused parameter is explicitly ignored to prevent compiler warnings.

  • Updated the get_cpu_usage function to take a gpointer data parameter and explicitly ignore it, aligning with GTK callback conventions.

Add gpointer parameter to match g_timeout_add_seconds callback
signature required by GLib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant