summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 11:44:21 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-08 11:44:21 (GMT)
commit0c592fa860367099924841cf390ea9f580a922ec (patch)
treef9ebae956a54d5b5c9d35596a1a1d84d9f3f6a40
parent54042ac52f7883cf45176f084f63f22b3fdc235c (diff)
downloadmonitoring-plugins-0c592fa860367099924841cf390ea9f580a922ec.tar.gz
check_ide_smart: fix misleading static declaration
-rw-r--r--plugins/check_ide_smart.c6
1 files 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 {
113 __u8 checksum; 113 __u8 checksum;
114} __attribute__((packed)) values_t; 114} __attribute__((packed)) values_t;
115 115
116struct { 116static struct {
117 __u8 value; 117 __u8 value;
118 char *text; 118 char *text;
119} 119} offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"},
120
121static offline_status_text[] = {{0x00, "NeverStarted"}, {0x02, "Completed"}, {0x04, "Suspended"},
122 {0x05, "Aborted"}, {0x06, "Failed"}, {0, 0}}; 120 {0x05, "Aborted"}, {0x06, "Failed"}, {0, 0}};
123 121
124static struct { 122static struct {