mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] linux/atm_tcp.h: cleanup for userspace
@ 2008-04-20  3:22 Mike Frysinger
  2008-04-24  2:24 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2008-04-20  3:22 UTC (permalink / raw)
  To: linux-kernel, akpm

The atm_tcp.h uses types from linux/atm.h, but does not include it.  It
should also use the standard __u## types from linux/types.h rather than the
uint##_t types since the former can be found with the kernel already.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/linux/atm_tcp.h |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/linux/atm_tcp.h b/include/linux/atm_tcp.h
index 18787f9..f05014e 100644
--- a/include/linux/atm_tcp.h
+++ b/include/linux/atm_tcp.h
@@ -8,10 +8,8 @@
 #define LINUX_ATM_TCP_H
 
 #include <linux/atmapi.h>
-
-#ifdef __KERNEL__
 #include <linux/types.h>
-#endif
+#include <linux/atm.h>
 #include <linux/atmioc.h>
 
 
@@ -20,9 +18,9 @@
  */
 
 struct atmtcp_hdr {
-	uint16_t	vpi;
-	uint16_t	vci;
-	uint32_t	length;		/* ... of data part */
+	__u16	vpi;
+	__u16	vci;
+	__u32	length;		/* ... of data part */
 };
 
 /*
-- 
1.5.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-24  4:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-20  3:22 [PATCH] linux/atm_tcp.h: cleanup for userspace Mike Frysinger
2008-04-24  2:24 ` David Miller
2008-04-24  3:03   ` Mike Frysinger
2008-04-24  3:18     ` David Miller
2008-04-24  3:33       ` Mike Frysinger
2008-04-24  4:23         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®