diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-16 20:18:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-16 20:18:05 +0000 |
commit | c2397475c5105dc6d5db1fac0ee1d8f33b77b237 (patch) | |
tree | 0076cdb290a2c15627812f94c117d6c4d621ea85 /src/core/rawlog.c | |
parent | 2a1052bbcef9318e42df9a87cc4cfb9fe8ef5a40 (diff) | |
download | irssi-c2397475c5105dc6d5db1fac0ee1d8f33b77b237.zip |
Cleaned up code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/rawlog.c')
-rw-r--r-- | src/core/rawlog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/rawlog.c b/src/core/rawlog.c index 3f422fa1..d935d1ac 100644 --- a/src/core/rawlog.c +++ b/src/core/rawlog.c @@ -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); |