From e32e6fea4b394780e9099322eab9c5ba3db0bbf6 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Mon, 28 Apr 2008 09:27:13 +0000 Subject: [PATCH] Make some variables static. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4814 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/core.c | 2 +- src/core/servers-setup.c | 2 +- src/fe-common/core/fe-recode.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/core.c b/src/core/core.c index 647eb6b4..b6362ffa 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -49,7 +49,7 @@ #ifdef HAVE_SYS_RESOURCE_H # include - struct rlimit orig_core_rlimit; + static struct rlimit orig_core_rlimit; #endif void chat_commands_init(void); diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index b442a41d..1eb69491 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -31,7 +31,7 @@ GSList *setupservers; -char *old_source_host; +static char *old_source_host; int source_host_ok; /* Use source_host_ip .. */ IPADDR *source_host_ip4, *source_host_ip6; /* Resolved address */ diff --git a/src/fe-common/core/fe-recode.c b/src/fe-common/core/fe-recode.c index cb5b28ee..b3092a09 100644 --- a/src/fe-common/core/fe-recode.c +++ b/src/fe-common/core/fe-recode.c @@ -33,9 +33,9 @@ # include #endif -char *recode_fallback = NULL; -char *recode_out_default = NULL; -char *term_charset = NULL; +static char *recode_fallback = NULL; +static char *recode_out_default = NULL; +static char *term_charset = NULL; static const char *fe_recode_get_target (WI_ITEM_REC *witem) {