summaryrefslogtreecommitdiff
path: root/src/core/rawlog.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-28 08:07:42 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-28 08:07:42 +0000
commita5a66264de2f56c5b1ba00e0228eae61f70d5689 (patch)
tree981b0663ff753f754cd0204b742ea12bff0d5e56 /src/core/rawlog.c
parent9cbf26d5199bdd1f3bd29fb27f181af4b94de02e (diff)
downloadirssi-a5a66264de2f56c5b1ba00e0228eae61f70d5689.zip
Perl working again, better than ever (unless there's bugs :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@191 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/rawlog.c')
-rw-r--r--src/core/rawlog.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/rawlog.c b/src/core/rawlog.c
index 791e594d..c67cd161 100644
--- a/src/core/rawlog.c
+++ b/src/core/rawlog.c
@@ -45,7 +45,7 @@ void rawlog_destroy(RAWLOG_REC *rawlog)
g_slist_foreach(rawlog->lines, (GFunc) g_free, NULL);
g_slist_free(rawlog->lines);
- if (rawlog->logging) close(rawlog->file);
+ if (rawlog->logging) close(rawlog->handle);
g_free(rawlog);
}
@@ -60,8 +60,8 @@ static void rawlog_add(RAWLOG_REC *rawlog, char *str)
}
if (rawlog->logging) {
- write(rawlog->file, str, strlen(str));
- write(rawlog->file, "\n", 1);
+ write(rawlog->handle, str, strlen(str));
+ write(rawlog->handle, "\n", 1);
}
rawlog->lines = g_slist_append(rawlog->lines, str);
@@ -113,17 +113,17 @@ void rawlog_open(RAWLOG_REC *rawlog, const char *fname)
return;
path = convert_home(fname);
- rawlog->file = 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->file);
- rawlog->logging = rawlog->file != -1;
+ rawlog_dump(rawlog, rawlog->handle);
+ rawlog->logging = rawlog->handle != -1;
}
void rawlog_close(RAWLOG_REC *rawlog)
{
if (rawlog->logging) {
- close(rawlog->file);
+ close(rawlog->handle);
rawlog->logging = 0;
}
}