From owner-p4-projects@FreeBSD.ORG Fri Jun 5 16:09:48 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D92EC1065670; Fri, 5 Jun 2009 16:09:47 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9969F106564A for ; Fri, 5 Jun 2009 16:09:47 +0000 (UTC) (envelope-from zec@fer.hr) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 880A08FC0A for ; Fri, 5 Jun 2009 16:09:47 +0000 (UTC) (envelope-from zec@fer.hr) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n55G9ljU013901 for ; Fri, 5 Jun 2009 16:09:47 GMT (envelope-from zec@fer.hr) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n55G9lpk013899 for perforce@freebsd.org; Fri, 5 Jun 2009 16:09:47 GMT (envelope-from zec@fer.hr) Date: Fri, 5 Jun 2009 16:09:47 GMT Message-Id: <200906051609.n55G9lpk013899@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zec@fer.hr using -f From: Marko Zec To: Perforce Change Reviews Cc: Subject: PERFORCE change 163578 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: Fri, 05 Jun 2009 16:09:48 -0000 http://perforce.freebsd.org/chv.cgi?CH=163578 Change 163578 by zec@zec_tpx32 on 2009/06/05 16:08:48 Further style improvements. Affected files ... .. //depot/projects/vimage-commit2/src/sys/net/if.c#72 edit .. //depot/projects/vimage-commit2/src/sys/net/if_loop.c#34 edit .. //depot/projects/vimage-commit2/src/sys/netinet/tcp_hostcache.c#25 edit .. //depot/projects/vimage-commit2/src/sys/netinet/tcp_var.h#15 edit Differences ... ==== //depot/projects/vimage-commit2/src/sys/net/if.c#72 (text+ko) ==== @@ -455,8 +455,7 @@ #ifdef VIMAGE static int -vnet_net_idetach(unused) - const void *unused; +vnet_net_idetach(const void *unused __unused) { INIT_VNET_NET(curvnet); ==== //depot/projects/vimage-commit2/src/sys/net/if_loop.c#34 (text+ko) ==== @@ -172,7 +172,8 @@ return (0); } -static int vnet_loif_iattach(const void *unused __unused) +static int +vnet_loif_iattach(const void *unused __unused) { INIT_VNET_NET(curvnet); @@ -190,8 +191,8 @@ } #ifdef VIMAGE -static int vnet_loif_idetach(unused) - const void *unused; +static int +vnet_loif_idetach(const void *unused __unused) { INIT_VNET_NET(curvnet); ==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_hostcache.c#25 (text+ko) ==== @@ -673,6 +673,5 @@ callout_reset(&V_tcp_hc_callout, V_tcp_hostcache.prune * hz, tcp_hc_purge, arg); - CURVNET_RESTORE(); } ==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_var.h#15 (text+ko) ==== @@ -584,7 +584,9 @@ void tcp_drain(void); void tcp_fasttimo(void); void tcp_init(void); +#ifdef VIMAGE void tcp_destroy(void); +#endif void tcp_fini(void *); char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *, const void *); @@ -629,7 +631,9 @@ * All tcp_hc_* functions are IPv4 and IPv6 (via in_conninfo) */ void tcp_hc_init(void); +#ifdef VIMAGE void tcp_hc_destroy(void); +#endif void tcp_hc_get(struct in_conninfo *, struct hc_metrics_lite *); u_long tcp_hc_getmtu(struct in_conninfo *); void tcp_hc_updatemtu(struct in_conninfo *, u_long);