]> git.ipfire.org Git - telemetry.git/commitdiff
sensors: Constify the subfeature type
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Mar 2026 14:29:50 +0000 (14:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Mar 2026 14:29:50 +0000 (14:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/sources/sensors.c

index a3fd0ae938167be4240584422c1e5ba1f6caa20d..896894d22f7bb4cbcc8283bb9fbdef9d5d765799 100644 (file)
@@ -36,7 +36,7 @@ typedef struct sensors_value {
        const char* field;
 
        // Type
-       sensors_subfeature_type type;
+       const sensors_subfeature_type type;
 } sensors_value;
 
 static int read_values(td_ctx* ctx, const sensors_chip_name* chip,