Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2009 01:57:00 -0700
From:      Xin LI <delphij@delphij.net>
To:        freebsd-arch@FreeBSD.org
Cc:        jmg@FreeBSD.org, MQ <antinvidia@gmail.com>
Subject:   [PATCH] type issue in kern_event.c
Message-ID:  <4A72B1DC.3040907@delphij.net>

next in thread | raw e-mail | index | archive | help
-----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@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A72B1DC.3040907>