Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 17:21:00 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 108764 for review
Message-ID:  <200610301721.k9UHL0Ek086039@repoman.freebsd.org>

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

Change 108764 by piso@piso_newluxor on 2006/10/30 17:20:34

	Rename LIBALIAS_LOCK_INIT and LIBALIAS_LOCK_DESTROY to
	LIBALIAS_RWLOCK_INIT and LIBALIAS_RWLOCK_DESTROY to avoid
	name clashes.

Affected files ...

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

Differences ...

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

@@ -60,9 +60,9 @@
 
 #ifdef _KERNEL
 
-#define	LIBALIAS_LOCK_INIT() \
+#define	LIBALIAS_RWLOCK_INIT() \
         rw_init(&handler_rw, "Libalias_modules_rwlock")
-#define	LIBALIAS_LOCK_DESTROY()	rw_destroy(&handler_rw)
+#define	LIBALIAS_RWLOCK_DESTROY()	rw_destroy(&handler_rw)
 #define	LIBALIAS_WLOCK_ASSERT() \
         rw_assert(&handler_rw, RA_WLOCKED)
 
@@ -95,7 +95,7 @@
 {
 
 	if (!rw_initialized(&handler_rw))
-		LIBALIAS_LOCK_INIT();
+		LIBALIAS_RWLOCK_INIT();
 }
 
 static void
@@ -103,12 +103,12 @@
 {
 
 	if (rw_initialized(&handler_rw))
-		LIBALIAS_LOCK_DESTROY();
+		LIBALIAS_RWLOCK_DESTROY();
 }
 
 #else
-#define	LIBALIAS_LOCK_INIT() ;
-#define	LIBALIAS_LOCK_DESTROY()	;
+#define	LIBALIAS_RWLOCK_INIT() ;
+#define	LIBALIAS_RWLOCK_DESTROY()	;
 #define	LIBALIAS_WLOCK_ASSERT()	;
 #define	LIBALIAS_RLOCK() ;
 #define	LIBALIAS_RUNLOCK() ;



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