Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2006 14:01:30 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 106057 for review
Message-ID:  <200609131401.k8DE1USP004461@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106057

Change 106057 by piso@piso_longino on 2006/09/13 14:00:38

	Turn some empty functions into empty defines: less space
	wasted.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#21 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#21 (text+ko) ====

@@ -117,47 +117,15 @@
 }
 
 #else
-
 #define	LIBALIAS_LOCK_INIT() ;
 #define	LIBALIAS_LOCK_DESTROY()	;
 #define	LIBALIAS_WLOCK_ASSERT()	;
-
-static __inline void
-LIBALIAS_RLOCK(void)
-{
-	;
-}
-
-static __inline void
-LIBALIAS_RUNLOCK(void)
-{
-	;
-}
-
-static __inline void
-LIBALIAS_WLOCK(void)
-{
-	;
-}
-
-static __inline void
-LIBALIAS_WUNLOCK(void)
-{
-	;
-}
-
-static void
-_handler_chain_init(void)
-{
-	;
-}
-
-static void
-_handler_chain_destroy(void)
-{
-	;
-}
-
+#define	LIBALIAS_RLOCK() ;
+#define	LIBALIAS_RUNLOCK() ;
+#define	LIBALIAS_WLOCK() ;
+#define	LIBALIAS_WUNLOCK() ;
+#define _handler_chain_init() ;
+#define _handler_chain_destroy() ;
 #endif 
 
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609131401.k8DE1USP004461>