net: cleanup include/linux
This cleanup patch puts struct/union/enum opening braces, in first line to ease grep games. struct something { becomes : struct something { Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b8883a65be
commit
d94d9fee9f
@@ -51,8 +51,7 @@
|
||||
* HIPPI statistics collection data.
|
||||
*/
|
||||
|
||||
struct hipnet_statistics
|
||||
{
|
||||
struct hipnet_statistics {
|
||||
int rx_packets; /* total packets received */
|
||||
int tx_packets; /* total packets transmitted */
|
||||
int rx_errors; /* bad packets received */
|
||||
@@ -77,8 +76,7 @@ struct hipnet_statistics
|
||||
};
|
||||
|
||||
|
||||
struct hippi_fp_hdr
|
||||
{
|
||||
struct hippi_fp_hdr {
|
||||
#if 0
|
||||
__u8 ulp; /* must contain 4 */
|
||||
#if defined (__BIG_ENDIAN_BITFIELD)
|
||||
@@ -108,8 +106,7 @@ struct hippi_fp_hdr
|
||||
__be32 d2_size;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct hippi_le_hdr
|
||||
{
|
||||
struct hippi_le_hdr {
|
||||
#if defined (__BIG_ENDIAN_BITFIELD)
|
||||
__u8 fc:3;
|
||||
__u8 double_wide:1;
|
||||
@@ -139,8 +136,7 @@ struct hippi_le_hdr
|
||||
* Looks like the dsap and ssap fields have been swapped by mistake in
|
||||
* RFC 2067 "IP over HIPPI".
|
||||
*/
|
||||
struct hippi_snap_hdr
|
||||
{
|
||||
struct hippi_snap_hdr {
|
||||
__u8 dsap; /* always 0xAA */
|
||||
__u8 ssap; /* always 0xAA */
|
||||
__u8 ctrl; /* always 0x03 */
|
||||
@@ -148,8 +144,7 @@ struct hippi_snap_hdr
|
||||
__be16 ethertype; /* packet type ID field */
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct hippi_hdr
|
||||
{
|
||||
struct hippi_hdr {
|
||||
struct hippi_fp_hdr fp;
|
||||
struct hippi_le_hdr le;
|
||||
struct hippi_snap_hdr snap;
|
||||
|
Reference in New Issue
Block a user