summaryrefslogtreecommitdiff
path: root/sysutils/toshctl/files/patch-tosh_bios.cpp
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 00:37:43 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-04 00:37:43 +0000
commit85ce16562ba7f3359a4d51d85106eb6607d123de (patch)
tree5aa26319d564b5a184b13bb460d0a662310aa44e /sysutils/toshctl/files/patch-tosh_bios.cpp
parentNew port: anacron (diff)
New port: Toshctl, a command-line tool to access parts of the Toshiba
hardware interface Toshctl is a command-line tool to allow access to much of the Toshiba hardware interface developed by Jonathan Buzzard and Linux toshset by Charles D. Schwieters. It can do things linke set the LCD brightness, set CPU speed and set fan speed. PR: ports/56035 Submitted by: Carl Moberg <carl@servicefactory.se>
Notes
Notes: svn path=/head/; revision=90184
Diffstat (limited to 'sysutils/toshctl/files/patch-tosh_bios.cpp')
-rw-r--r--sysutils/toshctl/files/patch-tosh_bios.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/toshctl/files/patch-tosh_bios.cpp b/sysutils/toshctl/files/patch-tosh_bios.cpp
new file mode 100644
index 000000000000..05de81b20f3d
--- /dev/null
+++ b/sysutils/toshctl/files/patch-tosh_bios.cpp
@@ -0,0 +1,11 @@
+--- tosh_bios.cpp.orig Fri Aug 22 16:03:37 2003
++++ tosh_bios.cpp Fri Aug 22 16:03:50 2003
+@@ -130,7 +130,7 @@
+ bios_time.tm_mday = str2int(&mem[0xFFFF8],2);
+ time_t t = mktime(&bios_time);
+
+- snprintf(buf,32,"%ld",t);
++ snprintf(buf,32,"%d",t);
+ s = "20";s += mem[0xFFFFB];s += mem[0xFFFFC];s += '-';
+ s += mem[0xFFFF5]; s+= mem[0xFFFF6];s+= '-';
+ s += mem[0xFFFF8]; s+= mem[0xFFFF9];