Define FOREACH_DIRENT through FOREACH_DIRENT_ALL
As in the previous commit, 'de' is used as the iterator variable name.
This commit is contained in:
@@ -118,7 +118,6 @@ void in_initrd_force(bool value) {
|
||||
int on_ac_power(void) {
|
||||
bool found_offline = false, found_online = false;
|
||||
_cleanup_closedir_ DIR *d = NULL;
|
||||
struct dirent *de;
|
||||
int r;
|
||||
|
||||
d = opendir("/sys/class/power_supply");
|
||||
|
||||
Reference in New Issue
Block a user