Whitespace fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-07-13 20:14:27 +00:00
parent dc2e58073c
commit e5555bc4eb

12
enum.c
View File

@@ -334,10 +334,10 @@ static int txt_callback(void *context, unsigned char *answer, int len, unsigned
/* answer is not null-terminated, but should be */
/* this is safe to do, as answer has extra bytes on the end we can
safely overwrite with a null */
* safely overwrite with a null */
answer[len] = '\0';
/* now increment len so that len includes the null, so that we can
compare apples to apples */
* compare apples to apples */
len +=1;
/* finally, copy the answer into c->txt */
@@ -493,8 +493,8 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
if (context.naptr_rrs_count >= context.position && ! (context.options & ENUMLOOKUP_OPTIONS_COUNT)) {
/* sort array by NAPTR order/preference */
for (k=0; k<context.naptr_rrs_count; k++) {
for (i=0; i<context.naptr_rrs_count; i++) {
for (k = 0; k < context.naptr_rrs_count; k++) {
for (i = 0; i < context.naptr_rrs_count; i++) {
/* use order first and then preference to compare */
if ((ntohs(context.naptr_rrs[k].naptr.order) < ntohs(context.naptr_rrs[i].naptr.order)
&& context.naptr_rrs[k].sort_pos > context.naptr_rrs[i].sort_pos)
@@ -517,7 +517,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
}
}
}
for (k=0; k<context.naptr_rrs_count; k++) {
for (k = 0; k < context.naptr_rrs_count; k++) {
if (context.naptr_rrs[k].sort_pos == context.position-1) {
ast_copy_string(context.dst, context.naptr_rrs[k].result, dstlen);
ast_copy_string(context.tech, context.naptr_rrs[k].tech, techlen);
@@ -530,7 +530,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
if (chan)
ret |= ast_autoservice_stop(chan);
for (k=0; k<context.naptr_rrs_count; k++) {
for (k = 0; k < context.naptr_rrs_count; k++) {
free(context.naptr_rrs[k].result);
free(context.naptr_rrs[k].tech);
}