[PATCH] type issue in kern_event.c

Xin LI delphij at delphij.net
Fri Jul 31 08:58:49 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

MQ has bring this problem to my attention: the use of some sizeof()'s in
kern_event.c was done against wrong object.  Fortunately currently we
have sizeof(list) == sizeof(*list), because "list" itself is a struct
with only SLIST_HEAD as its member, which is also a pointer.

I think these should be fixed, and here is my proposed patch.  Comments?

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkpysdwACgkQi+vbBBjt66BhwgCfWO2CH96HxvEdNB/g2/1qN4mr
Ax0Ani+qIUN5EKJZwSQLul3BsmeaFufj
=D12p
-----END PGP SIGNATURE-----


More information about the freebsd-arch mailing list