From 0c592fa860367099924841cf390ea9f580a922ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:44:21 +0100 Subject: check_ide_smart: fix misleading static declaration 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 { -- cgit v0.10-9-g596f