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:
parent
75666168b7
commit
c335a16f71
@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#define DEFAULT_LOG_FILE_CREATE_MODE 600
|
#define DEFAULT_LOG_FILE_CREATE_MODE 600
|
||||||
|
|
||||||
static struct flock lock;
|
|
||||||
|
|
||||||
GSList *logs;
|
GSList *logs;
|
||||||
|
|
||||||
static const char *log_item_types[] = {
|
static const char *log_item_types[] = {
|
||||||
@ -100,6 +98,7 @@ static char *log_filename(LOG_REC *log)
|
|||||||
int log_start_logging(LOG_REC *log)
|
int log_start_logging(LOG_REC *log)
|
||||||
{
|
{
|
||||||
char *dir;
|
char *dir;
|
||||||
|
struct flock lock;
|
||||||
|
|
||||||
g_return_val_if_fail(log != NULL, FALSE);
|
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)
|
void log_stop_logging(LOG_REC *log)
|
||||||
{
|
{
|
||||||
|
struct flock lock;
|
||||||
|
|
||||||
g_return_if_fail(log != NULL);
|
g_return_if_fail(log != NULL);
|
||||||
|
|
||||||
if (log->handle == -1)
|
if (log->handle == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user