1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Emanuele Giaquinta 2008-11-30 14:48:54 +00:00 committed by exg
parent 75666168b7
commit c335a16f71

View File

@ -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)