forked from Lainports/freebsd-ports
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>
11 lines
417 B
C++
11 lines
417 B
C++
--- 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];
|