mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 22:58:21 +00:00
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
<parameter name="resultnum" required="true">
|
||||
<para>The number of the result that you want to retrieve.</para>
|
||||
<para>Results start at <literal>1</literal>. If this argument is specified
|
||||
as <literal>getnum</literal>, then it will return the total number of results
|
||||
as <literal>getnum</literal>, then it will return the total number of results
|
||||
that are available or -1 on error.</para>
|
||||
</parameter>
|
||||
</syntax>
|
||||
@@ -87,7 +87,7 @@
|
||||
<para>This function will retrieve results from a previous use
|
||||
of the ENUMQUERY function.</para>
|
||||
</description>
|
||||
</function>
|
||||
</function>
|
||||
<function name="ENUMLOOKUP" language="en_US">
|
||||
<synopsis>
|
||||
General or specific querying of NAPTR records for ENUM or ENUM-like DNS pointers.
|
||||
@@ -117,10 +117,10 @@
|
||||
<option name="d">
|
||||
<para>for a direct DNS lookup without any flipping of digits.</para>
|
||||
</option>
|
||||
</optionlist>
|
||||
</optionlist>
|
||||
</parameter>
|
||||
<parameter name="record#">
|
||||
<para>If no <replaceable>record#</replaceable> is given,
|
||||
<para>If no <replaceable>record#</replaceable> is given,
|
||||
defaults to <literal>1</literal>.</para>
|
||||
</parameter>
|
||||
<parameter name="zone-suffix">
|
||||
@@ -224,7 +224,7 @@ struct enum_result_datastore {
|
||||
unsigned int id;
|
||||
};
|
||||
|
||||
static void erds_destroy(struct enum_result_datastore *data)
|
||||
static void erds_destroy(struct enum_result_datastore *data)
|
||||
{
|
||||
int k;
|
||||
|
||||
@@ -238,7 +238,7 @@ static void erds_destroy(struct enum_result_datastore *data)
|
||||
ast_free(data);
|
||||
}
|
||||
|
||||
static void erds_destroy_cb(void *data)
|
||||
static void erds_destroy_cb(void *data)
|
||||
{
|
||||
struct enum_result_datastore *erds = data;
|
||||
erds_destroy(erds);
|
||||
@@ -247,7 +247,7 @@ static void erds_destroy_cb(void *data)
|
||||
static const struct ast_datastore_info enum_result_datastore_info = {
|
||||
.type = "ENUMQUERY",
|
||||
.destroy = erds_destroy_cb,
|
||||
};
|
||||
};
|
||||
|
||||
static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data
|
||||
}
|
||||
|
||||
parse = ast_strdupa(data);
|
||||
|
||||
|
||||
AST_STANDARD_APP_ARGS(args, parse);
|
||||
|
||||
if (!chan) {
|
||||
@@ -306,9 +306,9 @@ static int enum_query_read(struct ast_channel *chan, const char *cmd, char *data
|
||||
ast_channel_lock(chan);
|
||||
ast_channel_datastore_add(chan, datastore);
|
||||
ast_channel_unlock(chan);
|
||||
|
||||
|
||||
res = 0;
|
||||
|
||||
|
||||
finish:
|
||||
|
||||
return res;
|
||||
@@ -321,7 +321,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
|
||||
char *parse, *p;
|
||||
unsigned int num;
|
||||
int res = -1, k;
|
||||
AST_DECLARE_APP_ARGS(args,
|
||||
AST_DECLARE_APP_ARGS(args,
|
||||
AST_APP_ARG(id);
|
||||
AST_APP_ARG(resultnum);
|
||||
);
|
||||
@@ -335,7 +335,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
|
||||
ast_log(LOG_ERROR, "ENUMRESULT can not be used without a channel!\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
||||
parse = ast_strdupa(data);
|
||||
|
||||
AST_STANDARD_APP_ARGS(args, parse);
|
||||
@@ -381,7 +381,7 @@ static int enum_result_read(struct ast_channel *chan, const char *cmd, char *dat
|
||||
continue;
|
||||
|
||||
p = strchr(erds->context->naptr_rrs[k].result, ':');
|
||||
|
||||
|
||||
if (p && strcasecmp(erds->context->naptr_rrs[k].tech, "ALL"))
|
||||
ast_copy_string(buf, p + 1, len);
|
||||
else
|
||||
|
Reference in New Issue
Block a user