s4:lib: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 3 Aug 2023 12:32:27 +0000 (14:32 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 21:45:29 +0000 (21:45 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/registry/tests/diff.c
source4/lib/socket/socket.c
source4/lib/socket/socket.h
source4/lib/stream/packet.c

index 5d2bfd7002c3d7b35d5647a2ff94333fd4edb296..35f968a0a8412080b165f067853113f2b2d937b5 100644 (file)
@@ -213,7 +213,7 @@ static bool diff_setup_tcase(struct torture_context *tctx, void **data)
        error = r2_ctx->ops->get_predefined_key(r2_ctx, HKEY_LOCAL_MACHINE, &key);
        torture_assert_werr_ok(tctx, error, "Opening HKEY_LOCAL_MACHINE failed");
        error = r2_ctx->ops->create_key(r2_ctx, key, "Software", NULL, NULL, &newkey);
-       torture_assert_werr_ok(tctx, error, "Creating HKLM\\Sofware failed");
+       torture_assert_werr_ok(tctx, error, "Creating HKLM\\Software failed");
        error = r2_ctx->ops->create_key(r2_ctx, newkey, "Microsoft", NULL, NULL, &newkey);
        torture_assert_werr_ok(tctx, error, "Creating HKLM\\Software\\Microsoft failed");
        error = r2_ctx->ops->create_key(r2_ctx, newkey, "Windows", NULL, NULL, &newkey);
index 26f23f5665366a43e01df889146c3239ccd89e9d..ef54029a31e978daaf2474f58e949bc399bd46db 100644 (file)
@@ -253,7 +253,7 @@ _PUBLIC_ NTSTATUS socket_send(struct socket_context *sock,
                        return STATUS_MORE_ENTRIES;
                }
                /* The random size sends are incompatible with TLS and SASL
-                * sockets, which require re-sends to be consistant */
+                * sockets, which require re-sends to be consistent */
                if (!(sock->flags & SOCKET_FLAG_ENCRYPT)) {
                        blob2.length = 1+(random() % blob2.length);
                } else {
@@ -443,7 +443,7 @@ _PUBLIC_ int socket_get_fd(struct socket_context *sock)
 /*
   call dup() on a socket, and close the old fd. This is used to change
   the fd to the lowest available number, to make select() more
-  efficient (select speed depends on the maxiumum fd number passed to
+  efficient (select speed depends on the maximum fd number passed to
   it)
 */
 _PUBLIC_ NTSTATUS socket_dup(struct socket_context *sock)
index d0fb5e0bfca0cdb17af6ac16d7a15711907cf491..ba2c17edd09f2270ac3bcf6541ab950d06986d42 100644 (file)
@@ -103,7 +103,7 @@ enum socket_state {
 #define SOCKET_FLAG_ENCRYPT      0x00000008 /* This socket
                                             * implementation requires
                                             * that re-sends be
-                                            * consistant, because it
+                                            * consistent, because it
                                             * is encrypting data.
                                             * This modifies the
                                             * TESTNONBLOCK case */
index f78d678de373b39471adec11d6868b5d86ac5d3d..c5df55a9c51b6f942d1f16eaaf1dcbae64b92f83 100644 (file)
@@ -531,7 +531,7 @@ _PUBLIC_ void packet_queue_run(struct packet_context *pc)
   call send_callback.  
 
   Useful for operations that must occur after sending a message, such
-  as the switch to SASL encryption after as sucessful LDAP bind relpy.
+  as the switch to SASL encryption after as successful LDAP bind reply.
 */
 _PUBLIC_ NTSTATUS packet_send_callback(struct packet_context *pc, DATA_BLOB blob,
                                       packet_send_callback_fn_t send_callback,