]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/util.c
Define FOREACH_DIRENT through FOREACH_DIRENT_ALL
[thirdparty/systemd.git] / src / basic / util.c
index 43e74b773fc3f895fb36f26e1fc38131d23cdecd..3aecb22fc4dc18eb49b12c7def1d72bc6a9613c3 100644 (file)
@@ -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");