summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2002-05-10 10:40:46 +0000
committertg <tg@FreeBSD.org>2002-05-10 10:40:46 +0000
commit762262ae8b656bbaa6d5c3295aeeb4b488c838d1 (patch)
tree3f12b44dbdff6e1845c4c52574156d40f13d982b /usr.bin/doscmd
parentbfd97fab25d08507317375f0b1ab98ce679dce6f (diff)
downloadFreeBSD-src-762262ae8b656bbaa6d5c3295aeeb4b488c838d1.zip
FreeBSD-src-762262ae8b656bbaa6d5c3295aeeb4b488c838d1.tar.gz
Cast the uc_mcontext member to regcontext *, not the whole ucontext_t.
PR: 35449 Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r--usr.bin/doscmd/AsyncIO.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/doscmd/AsyncIO.c b/usr.bin/doscmd/AsyncIO.c
index 565e8e6..aa2ac07 100644
--- a/usr.bin/doscmd/AsyncIO.c
+++ b/usr.bin/doscmd/AsyncIO.c
@@ -164,7 +164,8 @@ printf("Closed file descriptor %d\n", x);
}
}
-static void HandleIO(struct sigframe *sf)
+static void
+HandleIO(struct sigframe *sf)
{
static struct timeval tv;
fd_set readset, writeset;
@@ -247,7 +248,7 @@ again:
*/
if (as->func) {
(*handlers[fd].func)(fd, cond, handlers[fd].arg,
- (regcontext_t*)&sf->sf_uc);
+ (regcontext_t *)&sf->sf_uc.uc_mcontext);
} else {
/*
* Otherwise deregister this guy.
OpenPOWER on IntegriCloud