PERFORCE change 163578 for review

Marko Zec zec at FreeBSD.org
Fri Jun 5 16:09:48 UTC 2009


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

Change 163578 by zec at 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);


More information about the p4-projects mailing list