about summary refs log tree commit diff
path: root/hwmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwmon.c')
-rw-r--r--hwmon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwmon.c b/hwmon.c
index 896122c..43e9cd0 100644
--- a/hwmon.c
+++ b/hwmon.c
@@ -190,10 +190,10 @@ static void hwmon_collect(scrape_req *req, void *ctx) {
   char chip_label[LABEL_SIZE];
   char sensor_label[LABEL_SIZE];
 
-  const char *labels[][2] = {
-    { "chip", chip_label },
-    { "sensor", sensor_label },
-    { 0, 0 },
+  struct label labels[] = {
+    { .key = "chip", .value = chip_label },
+    { .key = "sensor", .value = sensor_label },
+    LABEL_END,
   };
 
   char path[BUF_SIZE];