summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-30 14:48:54 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-30 14:48:54 +0000
commitc335a16f71f85fb049a938318945c9b2440f539f (patch)
tree29ca98a01d4118cd0720f89e4e504d7eae90cdf8 /src/core
parent75666168b7ed968bbf36d7e547137144d0a9b59e (diff)
downloadirssi-c335a16f71f85fb049a938318945c9b2440f539f.zip
Make needlessly global variable local where used.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4932 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/log.c b/src/core/log.c
index d2a5abaa..9b2bc8c4 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -32,8 +32,6 @@
#define DEFAULT_LOG_FILE_CREATE_MODE 600
-static struct flock lock;
-
GSList *logs;
static const char *log_item_types[] = {
@@ -100,6 +98,7 @@ static char *log_filename(LOG_REC *log)
int log_start_logging(LOG_REC *log)
{
char *dir;
+ struct flock lock;
g_return_val_if_fail(log != NULL, FALSE);
@@ -150,6 +149,8 @@ int log_start_logging(LOG_REC *log)
void log_stop_logging(LOG_REC *log)
{
+ struct flock lock;
+
g_return_if_fail(log != NULL);
if (log->handle == -1)