diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:44:21 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:44:21 +0100 |
| commit | 0c592fa860367099924841cf390ea9f580a922ec (patch) | |
| tree | f9ebae956a54d5b5c9d35596a1a1d84d9f3f6a40 | |
| parent | 54042ac52f7883cf45176f084f63f22b3fdc235c (diff) | |
| download | monitoring-plugins-0c592fa860367099924841cf390ea9f580a922ec.tar.gz | |
check_ide_smart: fix misleading static declaration
| -rw-r--r-- | plugins/check_ide_smart.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index 381dbd80..9640ef70 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 | ||
| 116 | struct { | 116 | static 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 | |||
| 121 | static 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 | ||
| 124 | static struct { | 122 | static struct { |
