Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netsmb Define smb_co_lockstatus iff DEBUG || DIAGNOSTIC.
details: https://anonhg.NetBSD.org/src/rev/bbcfd406290a
branches: trunk
changeset: 543408:bbcfd406290a
user: briggs <briggs%NetBSD.org@localhost>
date: Mon Feb 24 16:12:08 2003 +0000
description:
Define smb_co_lockstatus iff DEBUG || DIAGNOSTIC.
diffstat:
sys/netsmb/smb_conn.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 997972f4a6b2 -r bbcfd406290a sys/netsmb/smb_conn.c
--- a/sys/netsmb/smb_conn.c Mon Feb 24 15:55:08 2003 +0000
+++ b/sys/netsmb/smb_conn.c Mon Feb 24 16:12:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_conn.c,v 1.6 2003/02/24 09:55:37 jdolecek Exp $ */
+/* $NetBSD: smb_conn.c,v 1.7 2003/02/24 16:12:08 briggs Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smb_conn.c,v 1.6 2003/02/24 09:55:37 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_conn.c,v 1.7 2003/02/24 16:12:08 briggs Exp $");
/*
* Connection engine.
@@ -69,7 +69,9 @@
static void smb_co_init(struct smb_connobj *cp, int level, const char *objname);
static void smb_co_done(struct smb_connobj *cp);
+#if defined(DEBUG) || defined(DIAGNOSTIC)
static int smb_co_lockstatus(struct smb_connobj *cp);
+#endif
static int smb_vc_disconnect(struct smb_vc *vcp);
static void smb_vc_free(struct smb_connobj *cp);
@@ -332,11 +334,13 @@
smb_co_gone(cp, scred);
}
+#if defined(DEBUG) || defined(DIAGNOSTIC)
int
smb_co_lockstatus(struct smb_connobj *cp)
{
return lockstatus(&cp->co_lock);
}
+#endif
int
smb_co_lock(struct smb_connobj *cp, int flags)
Home |
Main Index |
Thread Index |
Old Index