smbd: Fix a typo in a few places
authorVolker Lendecke <vl@samba.org>
Wed, 15 May 2024 14:43:31 +0000 (16:43 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 15 May 2024 17:56:24 +0000 (17:56 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed May 15 17:56:24 UTC 2024 on atb-devel-224

source3/lib/g_lock.c

index f1857c35e70ebbd6726c99f08efb15b2458b0aa5..77b8287273b972e1ba0bba0091794be277979ac6 100644 (file)
@@ -361,7 +361,7 @@ NTSTATUS g_lock_lock_cb_dump(struct g_lock_lock_cb_state *cb_state,
 {
        struct g_lock *lck = cb_state->lck;
 
-       /* We allow a cn_fn only for G_LOCK_WRITE for now... */
+       /* We allow a cb_fn only for G_LOCK_WRITE for now... */
        SMB_ASSERT(lck->num_shared == 0);
 
        fn(lck->exclusive,
@@ -1019,7 +1019,7 @@ struct tevent_req *g_lock_lock_send(TALLOC_CTX *mem_ctx,
        };
 
        /*
-        * We allow a cn_fn only for G_LOCK_WRITE for now.
+        * We allow a cb_fn only for G_LOCK_WRITE for now.
         *
         * It's all we currently need and it makes a few things
         * easier to implement.
@@ -1239,7 +1239,7 @@ NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, TDB_DATA key,
        SMB_ASSERT(!ctx->busy);
 
        /*
-        * We allow a cn_fn only for G_LOCK_WRITE for now.
+        * We allow a cb_fn only for G_LOCK_WRITE for now.
         *
         * It's all we currently need and it makes a few things
         * easier to implement.