]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
rename var mem content
authorBastian Dehn <hhaalo@arcor.de>
Sat, 14 Feb 2026 16:47:41 +0000 (17:47 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 14 Feb 2026 16:47:41 +0000 (17:47 +0100)
src/xml.c

index ad9ff652b94ed24bab76a1a9aa7eed633ec030f1..3b6c672d35f75b2df60e06a55207f62515be1141 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -371,10 +371,10 @@ void add_entry(const char* date,
        uint8_t end_hour,
        uint8_t end_min)
 {
-       memFile* fileContent = _init_mem();
-       _read_stdin_into_memory(fileContent);
+       memFile* file_content = _init_mem();
+       _read_stdin_into_memory(file_content);
 
-       char* saldostr = _read_last_saldo(fileContent);
+       char* saldostr = _read_last_saldo(file_content);
        const time_t saldo = get_seconds_from_str(saldostr);
 
        xmlChar* xmlElemContent = NULL;
@@ -387,7 +387,7 @@ void add_entry(const char* date,
        free(xmlElemContent);
        xmlElemContent = NULL;
 
-       xmlTextReaderPtr xmlreader = xmlReaderForMemory(fileContent->data, fileContent->size, NULL, "UTF-8", 0);
+       xmlTextReaderPtr xmlreader = xmlReaderForMemory(file_content->data, file_content->size, NULL, "UTF-8", 0);
        xmlNodePtr xmlnode = NULL;
 
        xmlTextWriterStartDocument(xmlwriter, "1.0", "UTF-8", NULL);
@@ -423,9 +423,9 @@ void add_entry(const char* date,
        xmlDictCleanup();
 #endif
 
-       free_mem(fileContent);
-       free(fileContent);
-       fileContent = NULL;
+       free_mem(file_content);
+       free(file_content);
+       file_content = NULL;
        free(xmlElemContent);
        xmlElemContent = NULL;
        free(saldostr);