[monitoring-plugins] check_ide_smart: fix misleading static declaration

Lorenz Kästle git at monitoring-plugins.org
Fri Nov 8 23:10:13 CET 2024


 Module: monitoring-plugins
 Branch: master
 Commit: 0c592fa860367099924841cf390ea9f580a922ec
 Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
   Date: Fri Nov  8 12:44:21 2024 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0c592fa

check_ide_smart: fix misleading static declaration

---

 plugins/check_ide_smart.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 381dbd8..9640ef7 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -113,12 +113,10 @@ typedef struct values_s {
 	__u8 checksum;
 } __attribute__((packed)) values_t;
 
-struct {
+static struct {
 	__u8 value;
 	char *text;
-}
-
-static offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"},
+} offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"},
 								{0x05, "Aborted"},      {0x06, "Failed"},    {0, 0}};
 
 static struct {



More information about the Commits mailing list