diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-04 18:37:44 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-04 18:37:44 +0000 |
commit | 293370670aef9a40ba160f5dd3b452cb3d56bf4f (patch) | |
tree | fed0cffaac1218cb98e89522b18fc7e11e8005c5 /channels/chan_iax2.c | |
parent | 086afa7995fe6e5bde33cbca294673549825ef7b (diff) |
Remove the typedefs on ao2_container and ao2_iterator. This is simply because
we don't typedef objects anywhere else in Asterisk, so we might as well make
this follow the same convention.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81448 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index af38cea8f..3e5309970 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -645,10 +645,10 @@ static struct ast_iax2_queue { #define MAX_PEER_BUCKETS 1 /* #define MAX_PEER_BUCKETS 563 */ #endif -static ao2_container *peers; +static struct ao2_container *peers; #define MAX_USER_BUCKETS MAX_PEER_BUCKETS -static ao2_container *users; +static struct ao2_container *users; static struct ast_firmware_list { struct iax_firmware *wares; @@ -1152,7 +1152,7 @@ static int iax2_getpeername(struct sockaddr_in sin, char *host, int len) { struct iax2_peer *peer = NULL; int res = 0; - ao2_iterator i; + struct ao2_iterator i; i = ao2_iterator_init(peers, 0); while ((peer = ao2_iterator_next(&i))) { @@ -2283,7 +2283,7 @@ static char *complete_iax2_show_peer(const char *line, const char *word, int pos struct iax2_peer *peer; char *res = NULL; int wordlen = strlen(word); - ao2_iterator i; + struct ao2_iterator i; /* 0 - iax2; 1 - show; 2 - peer; 3 - <peername> */ if (pos != 3) @@ -3489,7 +3489,7 @@ static int iax2_getpeertrunk(struct sockaddr_in sin) { struct iax2_peer *peer; int res = 0; - ao2_iterator i; + struct ao2_iterator i; i = ao2_iterator_init(peers, 0); while ((peer = ao2_iterator_next(&i))) { @@ -4218,7 +4218,7 @@ static int iax2_show_users(int fd, int argc, char *argv[]) struct iax2_user *user = NULL; char auth[90]; char *pstr = ""; - ao2_iterator i; + struct ao2_iterator i; switch (argc) { case 5: @@ -4276,7 +4276,7 @@ static int __iax2_show_peers(int manager, int fd, struct mansession *s, int argc int online_peers = 0; int offline_peers = 0; int unmonitored_peers = 0; - ao2_iterator i; + struct ao2_iterator i; #define FORMAT2 "%-15.15s %-15.15s %s %-15.15s %-8s %s %-10s%s" #define FORMAT "%-15.15s %-15.15s %s %-15.15s %-5d%s %s %-10s%s" @@ -4841,7 +4841,7 @@ static int check_access(int callno, struct sockaddr_in *sin, struct iax_ies *ies int bestscore = 0; int gotcapability = 0; struct ast_variable *v = NULL, *tmpvar = NULL; - ao2_iterator i; + struct ao2_iterator i; if (!iaxs[callno]) return res; @@ -5432,7 +5432,7 @@ static int authenticate_reply(struct chan_iax2_pvt *p, struct sockaddr_in *sin, /* Normal password authentication */ res = authenticate(p->challenge, override, okey, authmethods, &ied, sin, &p->ecx, &p->dcx); } else { - ao2_iterator i = ao2_iterator_init(peers, 0); + struct ao2_iterator i = ao2_iterator_init(peers, 0); while ((peer = ao2_iterator_next(&i))) { if ((ast_strlen_zero(p->peer) || !strcmp(p->peer, peer->name)) /* No peer specified at our end, or this is the peer */ @@ -9418,7 +9418,7 @@ static void delete_users(void) static void prune_users(void) { struct iax2_user *user; - ao2_iterator i; + struct ao2_iterator i; i = ao2_iterator_init(users, 0); while ((user = ao2_iterator_next(&i))) { @@ -9432,7 +9432,7 @@ static void prune_users(void) static void prune_peers(void) { struct iax2_peer *peer; - ao2_iterator i; + struct ao2_iterator i; i = ao2_iterator_init(peers, 0); while ((peer = ao2_iterator_next(&i))) { |