aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-11-04 12:50:58 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-04 12:50:58 -0500
commitd94d9fee9fa4e66a0b91640a694b8b10177075b3 (patch)
tree330b2b19e63c92f1fef3d9dbe0733ddeb0109664 /include/linux/if.h
parentb8883a65be2d925ea82b14ca0068ce9a6c8bac1f (diff)
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>
Diffstat (limited to 'include/linux/if.h')
-rw-r--r--include/linux/if.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/linux/if.h b/include/linux/if.h
index b9a6229f3be7..3b2a46bf8f8d 100644
--- a/include/linux/if.h
+++ b/include/linux/if.h
@@ -125,8 +125,7 @@ enum {
125 * being very small might be worth keeping for clean configuration. 125 * being very small might be worth keeping for clean configuration.
126 */ 126 */
127 127
128struct ifmap 128struct ifmap {
129{
130 unsigned long mem_start; 129 unsigned long mem_start;
131 unsigned long mem_end; 130 unsigned long mem_end;
132 unsigned short base_addr; 131 unsigned short base_addr;
@@ -136,8 +135,7 @@ struct ifmap
136 /* 3 bytes spare */ 135 /* 3 bytes spare */
137}; 136};
138 137
139struct if_settings 138struct if_settings {
140{
141 unsigned int type; /* Type of physical device or protocol */ 139 unsigned int type; /* Type of physical device or protocol */
142 unsigned int size; /* Size of the data allocated by the caller */ 140 unsigned int size; /* Size of the data allocated by the caller */
143 union { 141 union {
@@ -161,8 +159,7 @@ struct if_settings
161 * remainder may be interface specific. 159 * remainder may be interface specific.
162 */ 160 */
163 161
164struct ifreq 162struct ifreq {
165{
166#define IFHWADDRLEN 6 163#define IFHWADDRLEN 6
167 union 164 union
168 { 165 {
@@ -211,11 +208,9 @@ struct ifreq
211 * must know all networks accessible). 208 * must know all networks accessible).
212 */ 209 */
213 210
214struct ifconf 211struct ifconf {
215{
216 int ifc_len; /* size of buffer */ 212 int ifc_len; /* size of buffer */
217 union 213 union {
218 {
219 char __user *ifcu_buf; 214 char __user *ifcu_buf;
220 struct ifreq __user *ifcu_req; 215 struct ifreq __user *ifcu_req;
221 } ifc_ifcu; 216 } ifc_ifcu;