From owner-p4-projects@FreeBSD.ORG Sun Oct 1 00:19:08 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4356016A416; Sun, 1 Oct 2006 00:19:08 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE68416A412 for ; Sun, 1 Oct 2006 00:19:07 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 473E143D66 for ; Sun, 1 Oct 2006 00:19:03 +0000 (GMT) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k910J3Yf029603 for ; Sun, 1 Oct 2006 00:19:03 GMT (envelope-from attilio@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k910J2vt029600 for perforce@freebsd.org; Sun, 1 Oct 2006 00:19:02 GMT (envelope-from attilio@FreeBSD.org) Date: Sun, 1 Oct 2006 00:19:02 GMT Message-Id: <200610010019.k910J2vt029600@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to attilio@FreeBSD.org using -f From: Attilio Rao To: Perforce Change Reviews Cc: Subject: PERFORCE change 107024 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2006 00:19:08 -0000 http://perforce.freebsd.org/chv.cgi?CH=107024 Change 107024 by attilio@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_ */