thermometer.c (110acbc6a4518145db3a1a9c0686d730bb258bf1) | thermometer.c (cb4487d2b4043bbe98f60f2628387b40fa4896f8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2// Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> 3#define _GNU_SOURCE 4#include <dirent.h> 5#include <fcntl.h> 6#include <getopt.h> 7#include <regex.h> 8#include <signal.h> --- 130 unchanged lines hidden (view full) --- 139 config_setting_t *node; 140 const char *name; 141 int polling; 142 143 node = config_setting_get_elem(tz, i); 144 if (!node) { 145 ERROR("Missing node name '%d'\n", i); 146 return -1; | 1// SPDX-License-Identifier: GPL-2.0-only 2// Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> 3#define _GNU_SOURCE 4#include <dirent.h> 5#include <fcntl.h> 6#include <getopt.h> 7#include <regex.h> 8#include <signal.h> --- 130 unchanged lines hidden (view full) --- 139 config_setting_t *node; 140 const char *name; 141 int polling; 142 143 node = config_setting_get_elem(tz, i); 144 if (!node) { 145 ERROR("Missing node name '%d'\n", i); 146 return -1; |
147 }; | 147 } |
148 149 if (!config_setting_lookup_string(node, "name", &name)) { 150 ERROR("Thermal zone name not found\n"); 151 return -1; 152 } 153 154 if (!config_setting_lookup_int(node, "polling", &polling)) { 155 ERROR("Polling value not found"); --- 417 unchanged lines hidden --- | 148 149 if (!config_setting_lookup_string(node, "name", &name)) { 150 ERROR("Thermal zone name not found\n"); 151 return -1; 152 } 153 154 if (!config_setting_lookup_int(node, "polling", &polling)) { 155 ERROR("Polling value not found"); --- 417 unchanged lines hidden --- |