FreeBSD Bugzilla – Attachment 58050 Details for
Bug 87546
[patch] emulators/rtc: broken if sizeof(int)!=sizeof(long)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
Šimun Mikecin
on 2005-10-16 22:30:16 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Šimun Mikecin
Created:
2005-10-16 22:30:16 UTC
Size:
1.04 KB
patch
obsolete
>--- Makefile.orig Fri Oct 7 22:16:44 2005 >+++ Makefile Sun Oct 16 23:08:53 2005 >@@ -7,7 +7,7 @@ > > PORTNAME= rtc > PORTVERSION= 2004.02.24.1 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= emulators linux > MASTER_SITES= # none > DISTFILES= # none >--- files/rtc.c.orig Fri Oct 7 22:16:44 2005 >+++ files/rtc.c Sun Oct 16 23:07:57 2005 >@@ -82,7 +82,7 @@ > struct callout rtc_handle; > struct timespec lasttime; > struct selinfo sip; >- int woken; >+ unsigned long woken; > void *rtc_ident; > } var; > }; >@@ -338,11 +338,13 @@ > tsleep(&sc->var.rtc_ident, PCATCH, "rtc rd", hz * 10); > #if 0 > if (sc->var.woken > 1) >- printf("woken: %d\n", sc->var.woken); >+ printf("woken: %lu\n", sc->var.woken); > #endif > >- if (uio->uio_resid == sizeof(int)) { >- error = uiomove(&sc->var.woken, sizeof(int), uio); >+ if (uio->uio_resid == sizeof(unsigned int)) { >+ error = uiomove(&sc->var.woken, sizeof(unsigned int), uio); >+ } else if (uio->uio_resid == sizeof(unsigned long)) { >+ error = uiomove(&sc->var.woken, sizeof(unsigned long), uio); > } > sc->var.woken = 0; > return error;
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 87546
: 58050