From: Andreas Schneider Date: Thu, 3 Aug 2023 12:32:27 +0000 (+0200) Subject: s4:lib: Fix code spelling X-Git-Tag: tevent-0.16.0~941 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783eff3f76d0df30d99a3c197e2610f97d255bce;p=thirdparty%2Fsamba.git s4:lib: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/lib/registry/tests/diff.c b/source4/lib/registry/tests/diff.c index 5d2bfd7002c..35f968a0a84 100644 --- a/source4/lib/registry/tests/diff.c +++ b/source4/lib/registry/tests/diff.c @@ -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); diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c index 26f23f56653..ef54029a31e 100644 --- a/source4/lib/socket/socket.c +++ b/source4/lib/socket/socket.c @@ -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) diff --git a/source4/lib/socket/socket.h b/source4/lib/socket/socket.h index d0fb5e0bfca..ba2c17edd09 100644 --- a/source4/lib/socket/socket.h +++ b/source4/lib/socket/socket.h @@ -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 */ diff --git a/source4/lib/stream/packet.c b/source4/lib/stream/packet.c index f78d678de37..c5df55a9c51 100644 --- a/source4/lib/stream/packet.c +++ b/source4/lib/stream/packet.c @@ -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,