mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Cleaned up code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2a1052bbce
commit
c2397475c5
24 changed files with 489 additions and 363 deletions
|
|
@ -56,7 +56,8 @@ static void rawlog_add(RAWLOG_REC *rawlog, char *str)
|
|||
rawlog->nlines++;
|
||||
else {
|
||||
g_free(rawlog->lines->data);
|
||||
rawlog->lines = g_slist_remove(rawlog->lines, rawlog->lines->data);
|
||||
rawlog->lines = g_slist_remove(rawlog->lines,
|
||||
rawlog->lines->data);
|
||||
}
|
||||
|
||||
if (rawlog->logging) {
|
||||
|
|
@ -113,7 +114,8 @@ void rawlog_open(RAWLOG_REC *rawlog, const char *fname)
|
|||
return;
|
||||
|
||||
path = convert_home(fname);
|
||||
rawlog->handle = open(path, O_WRONLY | O_APPEND | O_CREAT, log_file_create_mode);
|
||||
rawlog->handle = open(path, O_WRONLY | O_APPEND | O_CREAT,
|
||||
log_file_create_mode);
|
||||
g_free(path);
|
||||
|
||||
rawlog_dump(rawlog, rawlog->handle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue