Remove unnecessary code from x52d_config_save_file

This is a legacy from when there was a separate print_section function
reverse-scroll
nirenjan 2021-11-22 10:08:01 -08:00
parent 385f1ca574
commit 5ab4784b21
3 changed files with 6 additions and 11 deletions

View File

@ -103,11 +103,6 @@ int x52d_config_save_file(struct x52d_config *cfg, const char *cfg_file)
return EINVAL;
}
if (current_section) {
free(current_section);
}
current_section = NULL;
cfg_fp = fopen(cfg_file, "w");
if (cfg_fp == NULL) {
PINELOG_ERROR(_("Unable to save config file %s - code %d: %s"),

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libx52 0.2.3\n"
"Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n"
"POT-Creation-Date: 2021-11-10 10:23-0800\n"
"POT-Creation-Date: 2021-11-22 10:08-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -698,12 +698,12 @@ msgstr ""
msgid "Error %d saving configuration file: %s"
msgstr ""
#: daemon/x52d_config_dump.c:113
#: daemon/x52d_config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr ""
#: daemon/x52d_config_dump.c:131
#: daemon/x52d_config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: libx52 0.2.3\n"
"Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n"
"POT-Creation-Date: 2021-11-10 10:23-0800\n"
"POT-Creation-Date: 2021-11-22 10:08-0800\n"
"PO-Revision-Date: 2021-11-04 15:35-0700\n"
"Last-Translator: Nirenjan Krishnan <nirenjan@gmail.com>\n"
"Language-Team: Dummy Language for testing i18n\n"
@ -750,12 +750,12 @@ msgstr "Erroray %d ettingsay onfigurationcay efaultsday: %s"
msgid "Error %d saving configuration file: %s"
msgstr "Erroray %d avingsay onfigurationcay ilefay: %s"
#: daemon/x52d_config_dump.c:113
#: daemon/x52d_config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr "Unableay otay avesay onfigcay ilefay %s - odecay %d: %s"
#: daemon/x52d_config_dump.c:131
#: daemon/x52d_config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr "Ailedfay otay umpday %s.%s otay onfigcay ilefay %s"