Commit a38e4cd618be147f4b1b302e802bf7a1bce99bde

Authored by Miguel Barão
1 parent d03f64a3
Exists in master

Changed perror to puts so that error appears

Showing 2 changed files with 1 additions and 1 deletions   Show diff stats
No preview for this file type
@@ -23,7 +23,7 @@ int main() { @@ -23,7 +23,7 @@ int main() {
23 23
24 if (sysctlbyname("hw.acpi.battery.state", &state, &len, NULL, 0) || 24 if (sysctlbyname("hw.acpi.battery.state", &state, &len, NULL, 0) ||
25 sysctlbyname("hw.acpi.battery.life", &life, &len, NULL, 0)) { 25 sysctlbyname("hw.acpi.battery.life", &life, &len, NULL, 0)) {
26 - perror("No battery?"); 26 + puts("(no battery)");
27 exit(EXIT_FAILURE); 27 exit(EXIT_FAILURE);
28 } 28 }
29 29