summaryrefslogtreecommitdiff
path: root/funcs/func_enum.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
commitfd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch)
tree42d2a87726d196f4db1c68489007520a4c597062 /funcs/func_enum.c
parent9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff)
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'funcs/func_enum.c')
-rw-r--r--funcs/func_enum.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/funcs/func_enum.c b/funcs/func_enum.c
index 2e86625ae..6929e3ccd 100644
--- a/funcs/func_enum.c
+++ b/funcs/func_enum.c
@@ -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