commit | c6710e50f6b976dead878e143c568d4f8b068c7c | [log] [tgz] |
---|---|---|
author | Pavel Roskin <proski@gnu.org> | Sun Feb 18 20:44:06 2007 -0500 |
committer | Jeff Garzik <jeff@garzik.org> | Sat Apr 28 11:00:55 2007 -0400 |
tree | 81acaf6b817d1e956f340c39e6d6b4b82939d488 | |
parent | 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 [diff] |
[PATCH] hostap: use offsetof() instead of own equivalent The original macros result in gcc 4.2 warning about "cast from pointer to integer of different size" on 64-bit systems. Use of offsetof() on fields in substructures is widespread throughout the kernel code and should work whether offsetof() is defined using __compiler_offsetof() or a cast. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>