165:e97829d0f8f9 | 166:c31ea86fec43 |
---|---|
112 #endif | 112 #endif |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 | 116 |
117 int wrconfig(void) | 117 int do_wrconfig(void); |
118 int do_wrconfig(void) | |
118 { | 119 { |
119 int rc = 0; | 120 int rc = 0; |
120 FILE *fp; | 121 FILE *fp; |
121 xmlTextWriterPtr writer; | 122 xmlTextWriterPtr writer; |
122 xmlBufferPtr buf; | 123 xmlBufferPtr buf; |
561 | 562 |
562 fprintf(fp, "%s", (const char *) buf->content); | 563 fprintf(fp, "%s", (const char *) buf->content); |
563 fclose(fp); | 564 fclose(fp); |
564 xmlBufferFree(buf); | 565 xmlBufferFree(buf); |
565 | 566 |
567 return 0; | |
568 } | |
569 | |
570 | |
571 | |
572 int wrconfig(void) | |
573 { | |
574 int rc; | |
575 | |
576 rc = do_wrconfig(); | |
577 syslog(LOG_NOTICE, "Rewritten configuration, rc=%d", rc); | |
566 return rc; | 578 return rc; |
567 } | 579 } |
568 | 580 |
569 | 581 |
570 | 582 |