diff options
| author | 2009-11-04 08:28:12 -0800 | |
|---|---|---|
| committer | 2009-11-04 08:28:12 -0800 | |
| commit | 1ea70841f07666af69e481d4ffdd6edb56db3c92 (patch) | |
| tree | 13ce5927c8c752a279e811ec68d504246a33835e /include/linux/node.h | |
| parent | misdn: Fix reversed 'if' in st_own_ctrl (diff) | |
isdn: eicon: Use offsetof
Use offsetof instead of explicit implementation.
* fixes bug with omitted & like:
len = (byte)(((T30_INFO *) 0)->station_id + 20)
* avoids compiler warnings with wrong sizes (pointer-to-char cast):
len = (byte)(&(((T30_INFO *) 0)->universal_6));
* cleans up the code
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Acked-by: Armin Schindler <armin@melware.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions
