diff options
author | Mark Murray <markm@FreeBSD.org> | 2000-07-25 21:18:47 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2000-07-25 21:18:47 +0000 |
commit | 7aa4389a6c7429f679ba5d0348c4251242ed4702 (patch) | |
tree | e0df1733752dbf98e34078500989835c49d8aaa4 /sys/dev/syscons/sysmouse.c | |
parent | f94bf02fdbcc9446be623773c7bcfdf7a21b4e88 (diff) | |
download | src-7aa4389a6c7429f679ba5d0348c4251242ed4702.tar.gz src-7aa4389a6c7429f679ba5d0348c4251242ed4702.zip |
Notes
Diffstat (limited to 'sys/dev/syscons/sysmouse.c')
-rw-r--r-- | sys/dev/syscons/sysmouse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/syscons/sysmouse.c b/sys/dev/syscons/sysmouse.c index 5c92b2321407..3f13de28acfa 100644 --- a/sys/dev/syscons/sysmouse.c +++ b/sys/dev/syscons/sysmouse.c @@ -334,10 +334,7 @@ sysmouse_event(mouse_info_t *info) sysmouse_tty); } - /* do the /dev/random device a favour */ - /* The nasty-looking cast is to force treatment of 8 u_chars */ - /* in buf as a u_int64_t */ - random_harvest(*((u_int64_t *)buf), 2, 0, RANDOM_MOUSE); + random_harvest(buf, sizeof(buf), 2, 0, RANDOM_MOUSE); return mouse_status.flags; } |