Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/iscsid When ISCSI_NOTHREAD is defined, make UNLOCK_SESS...



details:   https://anonhg.NetBSD.org/src/rev/51dbc652d3bf
branches:  trunk
changeset: 779423:51dbc652d3bf
user:      riz <riz%NetBSD.org@localhost>
date:      Sun May 27 17:27:33 2012 +0000

description:
When ISCSI_NOTHREAD is defined, make UNLOCK_SESSIONS a different kind
of noop, so that things build.

diffstat:

 sbin/iscsid/iscsid_globals.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 569f105375d9 -r 51dbc652d3bf sbin/iscsid/iscsid_globals.h
--- a/sbin/iscsid/iscsid_globals.h      Sun May 27 16:50:32 2012 +0000
+++ b/sbin/iscsid/iscsid_globals.h      Sun May 27 17:27:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsid_globals.h,v 1.4 2011/11/20 01:23:57 agc Exp $   */
+/*     $NetBSD: iscsid_globals.h,v 1.5 2012/05/27 17:27:33 riz Exp $   */
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -401,7 +401,7 @@
 #endif
 #ifdef ISCSI_NOTHREAD
 #define LOCK_SESSIONS   event_handler(NULL)
-#define UNLOCK_SESSIONS
+#define UNLOCK_SESSIONS do {} while(0)
 #else
 #define LOCK_SESSIONS   pthread_mutex_lock(&sesslist_lock)
 #define UNLOCK_SESSIONS pthread_mutex_unlock(&sesslist_lock)



Home | Main Index | Thread Index | Old Index