From 9548be0cec0eefe6d8fd5fae9653543c6b470dec Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 12:57:42 -0700 Subject: [PATCH] Removed redundant inline comments in the Winamp plugin by simplifying the plugin handle declaration and cleanup comments around initialization/return values, while keeping functional comments intact. Removed the redundant return 1 inline comment in the Exec plugin init function. --- plugins/exec/exec.c | 2 +- plugins/winamp/winamp.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/exec/exec.c b/plugins/exec/exec.c index 47c5c0e4..1d9d581b 100644 --- a/plugins/exec/exec.c +++ b/plugins/exec/exec.c @@ -145,7 +145,7 @@ zoitechat_plugin_init (zoitechat_plugin *plugin_handle, char **plugin_name, char zoitechat_hook_command (ph, "EXEC", ZOITECHAT_PRI_NORM, run_command, "Usage: /EXEC [-O] - execute commands inside ZoiteChat", 0); zoitechat_printf (ph, "%s plugin loaded\n", name); - return 1; /* return 1 for success */ + return 1; } int diff --git a/plugins/winamp/winamp.c b/plugins/winamp/winamp.c index 1cc84851..4a064702 100644 --- a/plugins/winamp/winamp.c +++ b/plugins/winamp/winamp.c @@ -20,7 +20,7 @@ #define PLAYING 1 #define PAUSED 3 -static zoitechat_plugin *ph; /* plugin handle */ +static zoitechat_plugin *ph; static int winamp(char *word[], char *word_eol[], void *userdata) @@ -130,7 +130,6 @@ zoitechat_plugin_init(zoitechat_plugin *plugin_handle, char **plugin_version, char *arg) { - /* we need to save this for use with any zoitechat_* functions */ ph = plugin_handle; *plugin_name = "Winamp"; @@ -142,7 +141,7 @@ zoitechat_plugin_init(zoitechat_plugin *plugin_handle, zoitechat_print (ph, "Winamp plugin loaded\n"); - return 1; /* return 1 for success */ + return 1; } int