fix: use config.h
This commit is contained in:
@@ -142,7 +142,7 @@ main(int argc, char *argv[])
|
|||||||
char *s = get_substring(out[1], 0, 2);
|
char *s = get_substring(out[1], 0, 2);
|
||||||
|
|
||||||
if (strcmp(s, "AC") == 0) {
|
if (strcmp(s, "AC") == 0) {
|
||||||
plugged = plugged_in("/sys/class/power_supply/ACAD/online");
|
plugged = plugged_in((char *)linefile);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(s);
|
free(s);
|
||||||
|
Reference in New Issue
Block a user