src/model.c: sanitize style
This commit is contained in:
parent
14e630cb35
commit
31d4e575df
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue