PERFORCE change 161704 for review

Marko Zec zec at FreeBSD.org
Thu May 7 03:10:41 UTC 2009


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

Change 161704 by zec at zec_tpx32 on 2009/05/07 03:09:51

	Prune unnecessary forward declarations, s/space/tab/ where
	appropriate, prune unused struct fields.

Affected files ...

.. //depot/projects/vimage-commit/src/sys/sys/vimage.h#24 edit

Differences ...

==== //depot/projects/vimage-commit/src/sys/sys/vimage.h#24 (text+ko) ====

@@ -44,20 +44,15 @@
 #define	VNET_DEBUG
 #endif
 
-struct vimage;
 struct vprocg;
 struct vnet;
-struct vi_req;
 struct kld_sym_lookup;
-struct ifnet;
 
 typedef int vnet_attach_fn(const void *);
 typedef int vnet_detach_fn(const void *);
 
 #ifndef VIMAGE_GLOBALS
 
-struct kld_sym_lookup;
-
 struct vnet_symmap {
 	char	*name;
 	size_t	 offset;
@@ -190,7 +185,6 @@
 
 struct vprocg {
 	LIST_ENTRY(vprocg) vprocg_le;
-	u_int		vprocg_ref;	/* reference count */
 	u_int		vprocg_id;	/* ID num */
 	u_int		nprocs;
 	char		_hostname[MAXHOSTNAMELEN];
@@ -298,8 +292,8 @@
 #define	IS_DEFAULT_VIMAGE(arg)	((arg)->vi_id == 0)
 #define	IS_DEFAULT_VNET(arg)	((arg)->vnet_id == 0)
 #else
-#define	IS_DEFAULT_VIMAGE(arg) 1
-#define	IS_DEFAULT_VNET(arg) 1
+#define	IS_DEFAULT_VIMAGE(arg)	1
+#define	IS_DEFAULT_VNET(arg)	1
 #endif
 
 #ifdef VIMAGE


More information about the p4-projects mailing list