diff options
author | Andreas Schneider <asn@samba.org> | 2023-03-22 09:24:04 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-03-24 07:01:31 +0000 |
commit | 2e10481dacf5a6e79622416ec5d78b9d2f5a957f (patch) | |
tree | 33551db4404cad86be061075a2dacd728a2f6142 /ctdb/common | |
parent | 6d7d82938b6134ca4bae45614efd409271535b5a (diff) | |
download | samba-2e10481dacf5a6e79622416ec5d78b9d2f5a957f.tar.gz |
ctdb:common: Fix code spelling
Best reviewed with: `git show --word-diff`
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/cmdline.h | 4 | ||||
-rw-r--r-- | ctdb/common/conf.c | 2 | ||||
-rw-r--r-- | ctdb/common/conf.h | 2 | ||||
-rw-r--r-- | ctdb/common/ctdb_ltdb.c | 2 | ||||
-rw-r--r-- | ctdb/common/rb_tree.c | 2 | ||||
-rw-r--r-- | ctdb/common/rb_tree.h | 2 | ||||
-rw-r--r-- | ctdb/common/reqid.h | 2 | ||||
-rw-r--r-- | ctdb/common/sock_client.h | 2 | ||||
-rw-r--r-- | ctdb/common/sock_daemon.h | 2 | ||||
-rw-r--r-- | ctdb/common/tmon.h | 2 |
10 files changed, 11 insertions, 11 deletions
diff --git a/ctdb/common/cmdline.h b/ctdb/common/cmdline.h index b9a128c2cc4..51519ca142b 100644 --- a/ctdb/common/cmdline.h +++ b/ctdb/common/cmdline.h @@ -63,7 +63,7 @@ struct cmdline_command { }; /** - * @brief convinience macro to define the end of commands list + * @brief convenience macro to define the end of commands list * * Here is an example of defining commands list. * @@ -135,7 +135,7 @@ int cmdline_parse(struct cmdline_context *cmdline, bool parse_options); /** - * @brief Excecute the function for the command matched by @cmdline_parse + * @brief Execute the function for the command matched by @cmdline_parse * * @param[in] cmdline Cmdline context * @param[in] private_data Private data for implementation function diff --git a/ctdb/common/conf.c b/ctdb/common/conf.c index e849ff4322f..a8ff724e73f 100644 --- a/ctdb/common/conf.c +++ b/ctdb/common/conf.c @@ -468,7 +468,7 @@ static int conf_option_new_value(struct conf_option *opt, /* * This happens only during load/reload. Set the value to * default value, so if the config option is dropped from - * config file, then it get's reset to default. + * config file, then it gets reset to default. */ opt->new_value = &opt->default_value; } else { diff --git a/ctdb/common/conf.h b/ctdb/common/conf.h index 6b152c1c358..4dbf9c33723 100644 --- a/ctdb/common/conf.h +++ b/ctdb/common/conf.h @@ -312,7 +312,7 @@ int conf_load(struct conf_context *conf, * @brief Reload the values for configuration options * * This function will re-load the values of the configuration options. This - * function can be called only after succesful call to conf_load(). + * function can be called only after successful call to conf_load(). * * @see conf_load * diff --git a/ctdb/common/ctdb_ltdb.c b/ctdb/common/ctdb_ltdb.c index 0b79ab44281..97db5cc64de 100644 --- a/ctdb/common/ctdb_ltdb.c +++ b/ctdb/common/ctdb_ltdb.c @@ -35,7 +35,7 @@ /* - * Calculate tdb flags based on databse type + * Calculate tdb flags based on database type */ int ctdb_db_tdb_flags(uint8_t db_flags, bool with_valgrind, bool with_mutex) { diff --git a/ctdb/common/rb_tree.c b/ctdb/common/rb_tree.c index 0965623be77..8e13dff969e 100644 --- a/ctdb/common/rb_tree.c +++ b/ctdb/common/rb_tree.c @@ -463,7 +463,7 @@ delete_node(trbt_node_t *node, bool from_destructor) predecessor instead. The predecessor is guaranteed to have at most one child node since its right arm must be NULL - (It must be NULL since we are its sucessor and we are above + (It must be NULL since we are its successor and we are above it in the tree) */ if (node->left != NULL && node->right != NULL) { diff --git a/ctdb/common/rb_tree.h b/ctdb/common/rb_tree.h index b5ddbb2a2b2..59e7ccc4807 100644 --- a/ctdb/common/rb_tree.h +++ b/ctdb/common/rb_tree.h @@ -60,7 +60,7 @@ void *trbt_insert32(trbt_tree_t *tree, uint32_t key, void *data); tree. If a node already exists for this key then: callback is called with data==existing data and param=param - the returned calue is talloc_stolen and inserted in the tree + the returned value is talloc_stolen and inserted in the tree */ void trbt_insert32_callback(trbt_tree_t *tree, uint32_t key, void *(*callback)(void *param, void *data), void *param); diff --git a/ctdb/common/reqid.h b/ctdb/common/reqid.h index 736e5b38901..d6d393657f6 100644 --- a/ctdb/common/reqid.h +++ b/ctdb/common/reqid.h @@ -27,7 +27,7 @@ * * @brief Request id database * - * CTDB tracks messsages using request id. CTDB stores client state for each + * CTDB tracks messages using request id. CTDB stores client state for each * request id to process the replies correctly. */ diff --git a/ctdb/common/sock_client.h b/ctdb/common/sock_client.h index d661c85f3e1..49a0a52caee 100644 --- a/ctdb/common/sock_client.h +++ b/ctdb/common/sock_client.h @@ -105,7 +105,7 @@ void sock_client_set_disconnect_callback(struct sock_client_context *sockc, * @param[in] ev Tevent context * @param[in] sockc The socket client context * @param[in] timeout How long to wait for - * @param[in] request Requeset packet to be sent + * @param[in] request Request packet to be sent * @return new tevent request, or NULL on failure */ struct tevent_req *sock_client_msg_send(TALLOC_CTX *mem_ctx, diff --git a/ctdb/common/sock_daemon.h b/ctdb/common/sock_daemon.h index 7653d2c1023..85ed9613619 100644 --- a/ctdb/common/sock_daemon.h +++ b/ctdb/common/sock_daemon.h @@ -141,7 +141,7 @@ struct sock_daemon_funcs { * @param[in] buf Data received from the client * @param[in] buflen Length of the data * @param[i] private_data Private data associatedwith the socket - * @return new tevent reques, or NULL on failure + * @return new tevent request, or NULL on failure * * * read_recv() ends the async computation to process data on the socket diff --git a/ctdb/common/tmon.h b/ctdb/common/tmon.h index 1d315a9bcb0..7cbfbbd9fc0 100644 --- a/ctdb/common/tmon.h +++ b/ctdb/common/tmon.h @@ -192,7 +192,7 @@ bool tmon_parse_custom(struct tmon_pkt *pkt, uint16_t *val); * * @param[in] req Tevent request created by tmon_send * @param[in] pkt Packet to write - * @return true on sucess, false on failure + * @return true on success, false on failure */ bool tmon_write(struct tevent_req *req, struct tmon_pkt *pkt); |