Use an io channel to write the config file.

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4990 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2009-01-16 17:12:27 +00:00 committed by exg
commit 4534ef242d
3 changed files with 20 additions and 18 deletions

View file

@ -48,7 +48,6 @@ struct _CONFIG_NODE {
struct _CONFIG_REC {
char *fname;
int handle;
int create_mode;
int modifycounter; /* increase every time something is changed */
@ -60,6 +59,7 @@ struct _CONFIG_REC {
GScanner *scanner;
/* while writing to configuration file.. */
GIOChannel *handle;
int tmp_indent_level; /* indentation position */
int tmp_last_lf; /* last character was a line feed */
};