diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2004-08-06 18:00:53 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2004-08-06 18:00:53 +0000 |
commit | 3d2373ec2c1a9ce549a39ee3df01d26df1289936 (patch) | |
tree | dae87855c5d1076a88cb850a4868f8bdae46e90a /sysutils/torsmo/files/patch-torsmo.c | |
parent | Perl 5.8.4 and above add several security check when doing setuid. (diff) |
. Add ACPI support. [1]
. Make this compile on FreeBSD 4.x. I've hacked the version being
committed to actually compile on 4.x. The submitted patch only partially
fixed 4.x build problems. [2]
PR: 70039 [1], 70041 [2]
Submitted by: Roman Bogorodskiy <bogorodskiy@inbox.ru> (maintainer)
Notes
Notes:
svn path=/head/; revision=115518
Diffstat (limited to 'sysutils/torsmo/files/patch-torsmo.c')
-rw-r--r-- | sysutils/torsmo/files/patch-torsmo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/torsmo/files/patch-torsmo.c b/sysutils/torsmo/files/patch-torsmo.c new file mode 100644 index 000000000000..c32c6aa662a3 --- /dev/null +++ b/sysutils/torsmo/files/patch-torsmo.c @@ -0,0 +1,11 @@ +--- torsmo.c.orig Thu Aug 5 19:39:06 2004 ++++ torsmo.c Thu Aug 5 19:39:20 2004 +@@ -998,7 +998,7 @@ + } + OBJ(acpitemp) { + /* does anyone have decimals in acpi temperature? */ +- snprintf(p, n, "%d", (int) get_acpi_temperature(obj->data.i)); ++ snprintf(p, n, "%0.1f", (int) get_acpi_temperature(obj->data.i)); + } + OBJ(acpifan) { + snprintf(p, n, "%s", get_acpi_fan()); |