summaryrefslogtreecommitdiff
path: root/community-testing/acpitool/sysfs-battery.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/acpitool/sysfs-battery.patch')
-rw-r--r--community-testing/acpitool/sysfs-battery.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/community-testing/acpitool/sysfs-battery.patch b/community-testing/acpitool/sysfs-battery.patch
deleted file mode 100644
index 11a58ecc5..000000000
--- a/community-testing/acpitool/sysfs-battery.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -wbBur acpitool-0.5.1/src/battery.cpp acpitool-0.5.1.my/src/battery.cpp
---- acpitool-0.5.1/src/battery.cpp 2009-08-13 23:42:43.000000000 +0400
-+++ acpitool-0.5.1.my/src/battery.cpp 2011-11-01 13:07:20.000000000 +0400
-@@ -781,45 +781,7 @@
-
- int Count_Batteries_ProcFS()
- {
-- DIR *battery_dir;
-- char *name, *dirname;
-- int t = 0;
--
-- dirname = "/proc/acpi/battery/";
-- battery_dir = opendir(dirname);
-- if(battery_dir)
-- {
-- struct dirent **namelist;
-- int n = 0;
--
-- n = scandir(dirname, &namelist, 0, alphasort);
-- if(n<0)
-- t = -1;
-- else
-- {
-- while(n--)
-- {
-- name = namelist[n]->d_name;
-- // skip . and .. //
-- if (!strcmp (".", name) || !strcmp ("..", name))
-- {
-- // do nothing
-- }
-- else
-- {
-- t++;
-- }
-- free(namelist[n]);
-- }
-- free(namelist);
-- }
-- }
-- else
-- {
-- t = 0;
-- }
-- closedir(battery_dir);
-- return t;
-+ return 0;
- }
-
-