Address GCC 7 warnings
This commit is contained in:
parent
ddc219746f
commit
8c89a671e8
2 changed files with 4 additions and 1 deletions
|
@ -118,14 +118,17 @@ void signal_handler(int signal)
|
|||
case SIGTERM:
|
||||
syslog(LOG_WARNING, "Received SIGTERM signal.");
|
||||
cleanup_and_exit(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
case SIGQUIT:
|
||||
syslog(LOG_WARNING, "Received SIGQUIT signal.");
|
||||
cleanup_and_exit(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
case SIGINT:
|
||||
syslog(LOG_WARNING, "Received SIGINT signal.");
|
||||
cleanup_and_exit(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
default:
|
||||
syslog(LOG_WARNING, "Unhandled signal (%d) %s", signal, strsignal(signal));
|
||||
|
|
|
@ -306,7 +306,7 @@ t_fans *retrieve_fans()
|
|||
}
|
||||
}
|
||||
|
||||
if (!fans_found > 0){
|
||||
if (fans_found == 0){
|
||||
syslog(LOG_CRIT, "mbpfan could not detect any fan. Please contact the developer.\n");
|
||||
printf("mbpfan could not detect any fan. Please contact the developer.\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Reference in a new issue