diff --git a/battery b/battery index 0ef8ac8..a30199b 100755 Binary files a/battery and b/battery differ diff --git a/battery.c b/battery.c index 7d3a226..74e15db 100644 --- a/battery.c +++ b/battery.c @@ -23,7 +23,7 @@ int main() { if (sysctlbyname("hw.acpi.battery.state", &state, &len, NULL, 0) || sysctlbyname("hw.acpi.battery.life", &life, &len, NULL, 0)) { - perror("No battery?"); + puts("(no battery)"); exit(EXIT_FAILURE); } -- libgit2 0.21.2