From 28358d45aa597f489c9bc054ea03b71638017c11 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 7 Oct 2023 21:55:32 +0200 Subject: [PATCH] Spellcheck corrections Signed-off-by: DL6ER --- src/api/config.c | 4 +--- src/config/cli.c | 4 +--- src/dnsmasq_interface.c | 2 +- src/webserver/http-common.c | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/api/config.c b/src/api/config.c index cbc70aab9..b9daf616f 100644 --- a/src/api/config.c +++ b/src/api/config.c @@ -287,9 +287,7 @@ static const char *getJSONvalue(struct conf_item *conf_item, cJSON *elem, struct char *pwhash = strlen(elem->valuestring) > 0 ? create_password(elem->valuestring) : strdup(""); // Verify that the password hash is valid - const bool verfied = verify_password(elem->valuestring, pwhash); - - if(!verfied) + if(!verify_password(elem->valuestring, pwhash)) { free(pwhash); return "Failed to create password hash (verification failed), password remains unchanged"; diff --git a/src/config/cli.c b/src/config/cli.c index 756aabf5a..5829b4493 100644 --- a/src/config/cli.c +++ b/src/config/cli.c @@ -162,9 +162,7 @@ static bool readStringValue(struct conf_item *conf_item, const char *value, stru char *pwhash = strlen(value) > 0 ? create_password(value) : strdup(""); // Verify that the password hash is valid - const bool verfied = verify_password(value, pwhash); - - if(!verfied) + if(!verify_password(value, pwhash)) { log_err("Failed to create password hash (verification failed), password remains unchanged"); free(pwhash); diff --git a/src/dnsmasq_interface.c b/src/dnsmasq_interface.c index d8470e3d7..0211afa86 100644 --- a/src/dnsmasq_interface.c +++ b/src/dnsmasq_interface.c @@ -2847,7 +2847,7 @@ void FTL_fork_and_bind_sockets(struct passwd *ent_pw, bool dnsmasq_start) // Start database thread if database is used if(pthread_create( &threads[DB], &attr, DB_thread, NULL ) != 0) { - log_crit("Unable to creeate database thread. Exiting..."); + log_crit("Unable to create database thread. Exiting..."); exit(EXIT_FAILURE); } diff --git a/src/webserver/http-common.c b/src/webserver/http-common.c index 1d6f29e3c..f7521dac0 100644 --- a/src/webserver/http-common.c +++ b/src/webserver/http-common.c @@ -28,7 +28,7 @@ char *json_formatter(const cJSON *object) { if(config.webserver.api.prettyJSON.v.b) { - /* Examplary output: + /* Exemplary output: { "queries in database": 70, "database filesize": 49152,