From 31d4e575df93e663f6ea5472f728d29136d6b907 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 30 Mar 2024 22:01:00 +0200 Subject: [PATCH] src/model.c: sanitize style --- src/model.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model.c b/src/model.c index c272f69..6e68723 100644 --- a/src/model.c +++ b/src/model.c @@ -47,7 +47,7 @@ struct model_t *knownModels = NULL; * @param hashTable The hash table to populate. * @param currentPath The path to the current node. */ -void model_populate_hashtable(xmlNode *node, +void model_populate_hashtable (xmlNode *node, xmlHashTablePtr hashTable, char *currentPath) { @@ -84,7 +84,7 @@ void model_populate_hashtable(xmlNode *node, * @param path The path to the tag, with '/' as the delimiter. * @return The content of the tag at the end of the path, or NULL if not found. */ -char* model_find_node_by_path(xmlNode *node, const char *path) +char* model_find_node_by_path (xmlNode *node, const char *path) { return (xmlNodePtr)xmlHashLookup(hashTable, (const xmlChar *)path); } @@ -97,7 +97,7 @@ char* model_find_node_by_path(xmlNode *node, const char *path) * @param newContent The new content to set for the node. * @return 1 if the node was found and modified, 0 otherwise. */ -int model_modify_node(xmlHashTablePtr hashTable, +int model_modify_node (xmlHashTablePtr hashTable, const char *path, const char *newContent) {