diff options
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-x | channels/chan_iax2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 2a547926f..2446c9ab6 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -109,7 +109,7 @@ static int timingfd = -1; /* Timing file descriptor */ static int usecnt; static pthread_mutex_t usecnt_lock = AST_MUTEX_INITIALIZER; -int (*regfunk)(char *username, int onoff) = NULL; +int (*iax2_regfunk)(char *username, int onoff) = NULL; /* Ethernet, etc */ #define IAX_CAPABILITY_FULLBANDWIDTH 0xFFFF @@ -244,7 +244,7 @@ struct iax2_registry { struct iax2_registry *next; }; -struct iax2_registry *registrations; +static struct iax2_registry *registrations; /* Don't retry more frequently than every 10 ms, or less frequently than every 5 seconds */ #define MIN_RETRY_TIME 10 @@ -429,7 +429,7 @@ static struct iax2_dpcache { struct iax2_dpcache *peer; /* For linking in peers */ } *dpcache; -pthread_mutex_t dpcache_lock; +static pthread_mutex_t dpcache_lock; static void iax_debug_output(const char *data) { @@ -4808,7 +4808,7 @@ static struct iax2_user *build_user(char *name, struct ast_variable *v) } -void delete_users(void){ +static void delete_users(void){ struct iax2_user *user, *userlast; struct iax2_peer *peer; struct iax2_registry *reg, *regl; @@ -4842,7 +4842,7 @@ void delete_users(void){ ast_pthread_mutex_unlock(&peerl.lock); } -void prune_peers(void){ +static void prune_peers(void){ /* Prune peers who still are supposed to be deleted */ struct iax2_peer *peer, *peerlast, *peernext; int x; |