2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +00:00

Fix exit code in error case (for example no sensors found.) Patch from

Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5627 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2009-01-28 13:10:21 +00:00
parent cf09a7e43a
commit 496b15a644
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ SVN-HEAD
Don't bail out on transient errors (#2330)
sensors: Add support for instantaneous power sensors
Add support for current sensors
Fix exit code in error case
sensors.conf.8: Lots of additions and reworks
sensors.conf.default: New, minimum version of sensors.conf.eg (#2333)
Add sections for the SMSC SCH311x and SCH5027

View File

@@ -243,7 +243,7 @@ static void print_bus_list(void)
int main(int argc, char *argv[])
{
int c, res, i, error, do_bus_list;
int c, res, i, error = 0, do_bus_list;
const char *config_file_name = NULL;
struct option long_opts[] = {
@@ -344,5 +344,5 @@ int main(int argc, char *argv[])
exit:
sensors_cleanup();
exit(res);
exit(error);
}