FreeBSD Bugzilla – Attachment 5199 Details for
Bug 12613
[patch] apm reports wrong resume time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 633 bytes, created by
Michael Constant
on 1999-07-13 01:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Michael Constant
Created:
1999-07-13 01:50:00 UTC
Size:
633 bytes
patch
obsolete
>--- /usr/src/usr.sbin/apm/apm.c.orig Fri Sep 4 09:08:54 1998 >+++ /usr/src/usr.sbin/apm/apm.c Mon Jul 12 17:20:56 1999 >@@ -66,13 +66,15 @@ > bcd2int(int bcd) > { > int retval = 0; >+ int place = 1; > > if (bcd > 0x9999) > return -1; > > while (bcd) { >- retval = retval * 10 + ((bcd & 0xf000) >> 12); >- bcd = (bcd & 0xfff) << 4; >+ retval += (bcd & 0xf) * place; >+ bcd >>= 4; >+ place *= 10; > } > return retval; > } >@@ -194,6 +198,7 @@ > tm.tm_mday = bcd2int(xl(args.esi)); > tm.tm_mon = bcd2int(xh(args.esi)) - 1; > tm.tm_year = bcd2int(args.edi) - 1900; >+ tm.tm_isdst = -1; > if (cmos_wall) > t = mktime(&tm); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12613
: 5199