From b74f0c3cea06ce45cc8c67aee6789c8bece032e7 Mon Sep 17 00:00:00 2001 From: Anubhav Rawal Date: Thu, 19 Dec 2024 02:38:39 +0000 Subject: [PATCH] Fix spelling mistakes --- docs/spec/executable/fleet-provisioning.md | 2 +- ggl-recipe/src/recipe.c | 4 ++-- recipe2unit/src/unit_file_generator.c | 2 +- tes-serverd/src/http_server.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/spec/executable/fleet-provisioning.md b/docs/spec/executable/fleet-provisioning.md index c7d38c845..ccd10eda4 100644 --- a/docs/spec/executable/fleet-provisioning.md +++ b/docs/spec/executable/fleet-provisioning.md @@ -28,7 +28,7 @@ operations - [fleet-provisioning-param-certfilePath-1] The argument will provide the path to the certificate that will be created locally as well as the onces that will - be fetched from iot core. By deafult the location will be the current working + be fetched from iot core. By default the location will be the current working directory - [fleet-provisioning-param-certfilePath-2] The certfilePath argument can be provided by `--cert-file-Path` or `-c`. diff --git a/ggl-recipe/src/recipe.c b/ggl-recipe/src/recipe.c index 39d606ad3..b442804cc 100644 --- a/ggl-recipe/src/recipe.c +++ b/ggl-recipe/src/recipe.c @@ -317,10 +317,10 @@ static GglError manifest_selection( } } - GglList selection_deafult + GglList selection_default = GGL_LIST(GGL_OBJ_BUF(GGL_STR("all"))); return lifecycle_selection( - &GGL_OBJ_LIST(selection_deafult), + &GGL_OBJ_LIST(selection_default), recipe_map, selected_lifecycle_object ); diff --git a/recipe2unit/src/unit_file_generator.c b/recipe2unit/src/unit_file_generator.c index ac6b10d22..7491f47b2 100644 --- a/recipe2unit/src/unit_file_generator.c +++ b/recipe2unit/src/unit_file_generator.c @@ -286,7 +286,7 @@ static GglError update_unit_file_buffer( return ret; } } else { - // The deafult timeout is 120 seconds + // The default timeout is 120 seconds ret = ggl_byte_vec_append(out, GGL_STR("TimeoutSec=120\n")); if (ret != GGL_ERR_OK) { return ret; diff --git a/tes-serverd/src/http_server.c b/tes-serverd/src/http_server.c index 617b74793..c800bcf64 100644 --- a/tes-serverd/src/http_server.c +++ b/tes-serverd/src/http_server.c @@ -161,7 +161,7 @@ static void request_handler(struct evhttp_request *req, void *arg) { evbuffer_free(buf); } -static void deafult_handler(struct evhttp_request *req, void *arg) { +static void default_handler(struct evhttp_request *req, void *arg) { (void) arg; GglBuffer response_cred_buffer @@ -205,7 +205,7 @@ GglError http_server(void) { evhttp_set_cb( http, "/2016-11-01/credentialprovider/", request_handler, NULL ); - evhttp_set_gencb(http, deafult_handler, NULL); + evhttp_set_gencb(http, default_handler, NULL); // Bind to available port handle = evhttp_bind_socket_with_handle(http, "0.0.0.0", 0);