From 1abbbb211e59e8730d7ef8e9ddd9d47ab6fabe07 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 1 Mar 2023 06:21:42 +0000 Subject: [PATCH] Restyled by clang-format --- src/tools/kdb/set.c | 7 ++++--- src/tools/kdb/set.h | 38 +++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/tools/kdb/set.c b/src/tools/kdb/set.c index 641d89542b6..5a17505fce9 100644 --- a/src/tools/kdb/set.c +++ b/src/tools/kdb/set.c @@ -54,10 +54,11 @@ int execSet (KeySet * options, Key * errorKey) Key * parentKey = keyNew (name, KEY_END); - if (keyGetNamespace (parentKey) == KEY_NS_NONE || keyGetNamespace (parentKey) == KEY_NS_CASCADING) { + if (keyGetNamespace (parentKey) == KEY_NS_NONE || keyGetNamespace (parentKey) == KEY_NS_CASCADING) + { ret = 1; ELEKTRA_SET_VALIDATION_SYNTACTIC_ERROR (errorKey, "key does not specify a namespace"); - elektraFree ((void*) name); + elektraFree ((void *) name); keyDel (parentKey); return ret; } @@ -95,7 +96,7 @@ int execSet (KeySet * options, Key * errorKey) { printf ("\n"); } - elektraFree ((void*) name); + elektraFree ((void *) name); keyDel (parentKey); ksDel (conf); kdbClose (handle, errorKey); diff --git a/src/tools/kdb/set.h b/src/tools/kdb/set.h index 92912c2b238..3af921614ee 100644 --- a/src/tools/kdb/set.h +++ b/src/tools/kdb/set.h @@ -1,10 +1,10 @@ /** -* @file -* -* @brief KDB set subcommand header -* -* @copyright BSD License (see LICENSE.md or https://www.libelektra.org) -*/ + * @file + * + * @brief KDB set subcommand header + * + * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) + */ #ifndef ELEKTRA_KDB_SET_H #define ELEKTRA_KDB_SET_H @@ -12,22 +12,22 @@ #include /** -* Adds options specification of set command to keySet -* -* @param spec the base spec where the commands spec should be added -*/ + * Adds options specification of set command to keySet + * + * @param spec the base spec where the commands spec should be added + */ void addSetSpec (KeySet * spec); /** -* Runs the set command -* -* @param options cli options and arguments as specified in addSetSpec() -* @param errorKey key where errors and warnings should be saved -* -* @retval 0 set command ran without errors -* @retval 1 errors occurred, keySetMeta (errorKey, "error/reason") for info -* -*/ + * Runs the set command + * + * @param options cli options and arguments as specified in addSetSpec() + * @param errorKey key where errors and warnings should be saved + * + * @retval 0 set command ran without errors + * @retval 1 errors occurred, keySetMeta (errorKey, "error/reason") for info + * + */ int execSet (KeySet * options, Key * errorKey); #endif // ELEKTRA_KDB_SET_H