diff th_config.c @ 135:26fe4dab7e78

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Oct 2010 21:08:21 +0300
parents ffe8bbd429fa
children 3e221c16b087
line wrap: on
line diff
--- a/th_config.c	Sat Oct 30 20:42:47 2010 +0300
+++ b/th_config.c	Sat Oct 30 21:08:21 2010 +0300
@@ -619,11 +619,11 @@
             case ITEM_SECTION:
                 {
                 int res;
-                if (fprintf(f->file, "\n%s = {\n", item->name) < 0)
+                if (fprintf(f->file, "%s = {\n", item->name) < 0)
                     return -7;
                 res = th_cfg_write_sect(f, (cfgitem_t *) item->data, nesting + 1);
                 if (res != 0) return res;
-                if (fprintf(f->file, "} # End of '%s'\n\n", item->name) < 0)
+                if (fprintf(f->file, "}\n\n") < 0)
                     return -8;
                 }
                 break;