PERFORCE change 107024 for review

Attilio Rao attilio at FreeBSD.org
Sat Sep 30 17:19:08 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107024

Change 107024 by attilio at attilio_laptop on 2006/10/01 00:18:32

	restyle them.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/rio500_usb.h#4 edit
.. //depot/projects/usb/src/sys/dev/usb/udbp.h#4 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/rio500_usb.h#4 (text+ko) ====

@@ -29,16 +29,16 @@
 struct RioCommand
 {
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-  u_int16_t  length;
+  uint16_t	length;
 #else
-  short length;
+  short		length;
 #endif
-  int   request;
-  int   requesttype;
-  int   value;
-  int   index;
-  void *buffer;
-  int  timeout;
+  int		request;
+  int		requesttype;
+  int		value;
+  int		index;
+  void		*buffer;
+  int		timeout;
 };
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)

==== //depot/projects/usb/src/sys/dev/usb/udbp.h#4 (text+ko) ====

@@ -37,20 +37,20 @@
  * $FreeBSD: src/sys/dev/usb/udbp.h,v 1.4 2005/01/06 01:43:28 imp Exp $
  */
 
-#ifndef _NETGRAPH_UDBP_H_
-#define _NETGRAPH_UDBP_H_
+#ifndef	_NETGRAPH_UDBP_H_
+#define	_NETGRAPH_UDBP_H_
 
 /* Node type name. This should be unique among all netgraph node types */
-#define NG_UDBP_NODE_TYPE	"udbp"
+#define	NG_UDBP_NODE_TYPE	"udbp"
 
 /* Node type cookie. Should also be unique. This value MUST change whenever
    an incompatible change is made to this header file, to insure consistency.
    The de facto method for generating cookies is to take the output of the
    date command: date -u +'%s' */
-#define NGM_UDBP_COOKIE		944609300
+#define	NGM_UDBP_COOKIE		944609300
 
 
-#define NG_UDBP_HOOK_NAME	"data"
+#define	NG_UDBP_HOOK_NAME	"data"
 
 /* Netgraph commands understood by this node type */
 enum {
@@ -60,8 +60,8 @@
 
 /* This structure is returned by the NGM_UDBP_GET_STATUS command */
 struct ngudbpstat {
-	u_int   packets_in;	/* packets in from downstream */
-	u_int   packets_out;	/* packets out towards downstream */
+	uint	packets_in;	/* packets in from downstream */
+	uint	packets_out;	/* packets out towards downstream */
 };
 
 /*
@@ -71,10 +71,10 @@
  *
  * This needs to be kept in sync with the above structure definition
  */
-#define NG_UDBP_STATS_TYPE_INFO	{				\
-	  { "packets_in",	&ng_parse_int32_type	},	\
-	  { "packets_out",	&ng_parse_int32_type	},	\
-	  { NULL },						\
+#define NG_UDBP_STATS_TYPE_INFO	{					\
+	  { "packets_in",	&ng_parse_int32_type	},		\
+	  { "packets_out",	&ng_parse_int32_type	},		\
+	  { NULL },							\
 }
 
 #endif /* _NETGRAPH_UDBP_H_ */


More information about the p4-projects mailing list