summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-22 09:14:07 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-22 09:14:07 -0500
commitce3d56920b15facbb64b3caf0d823a3f57c0dded (patch)
tree0ea4a13885afb281237b3747e85eb6315863ae0a /funcs
parent35a2e09c655f26067db0f51837704886d6ffff78 (diff)
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'funcs')
-rw-r--r--funcs/Makefile2
-rw-r--r--funcs/func_audiohookinherit.c1
-rw-r--r--funcs/func_base64.c2
-rw-r--r--funcs/func_blacklist.c2
-rw-r--r--funcs/func_config.c4
-rw-r--r--funcs/func_curl.c9
-rw-r--r--funcs/func_cut.c8
-rw-r--r--funcs/func_db.c4
-rw-r--r--funcs/func_devstate.c4
-rw-r--r--funcs/func_dialplan.c2
-rw-r--r--funcs/func_enum.c26
-rw-r--r--funcs/func_extstate.c8
-rw-r--r--funcs/func_frame_trace.c2
-rw-r--r--funcs/func_global.c2
-rw-r--r--funcs/func_groupcount.c12
-rw-r--r--funcs/func_iconv.c9
-rw-r--r--funcs/func_jitterbuffer.c1
-rw-r--r--funcs/func_lock.c8
-rw-r--r--funcs/func_logic.c8
-rw-r--r--funcs/func_md5.c4
-rw-r--r--funcs/func_odbc.c9
-rw-r--r--funcs/func_pitchshift.c1
-rw-r--r--funcs/func_presencestate.c7
-rw-r--r--funcs/func_rand.c8
-rw-r--r--funcs/func_sha1.c4
-rw-r--r--funcs/func_sorcery.c1
-rw-r--r--funcs/func_speex.c22
-rw-r--r--funcs/func_sprintf.c4
-rw-r--r--funcs/func_srv.c4
-rw-r--r--funcs/func_strings.c34
-rw-r--r--funcs/func_sysinfo.c5
-rw-r--r--funcs/func_timeout.c4
-rw-r--r--funcs/func_uri.c6
-rw-r--r--funcs/func_version.c2
-rw-r--r--funcs/func_vmcount.c6
-rw-r--r--funcs/func_volume.c18
36 files changed, 121 insertions, 132 deletions
diff --git a/funcs/Makefile b/funcs/Makefile
index 1caa7c3e4..3f65070e3 100644
--- a/funcs/Makefile
+++ b/funcs/Makefile
@@ -1,6 +1,6 @@
#
# Asterisk -- An open source telephony toolkit.
-#
+#
# Makefile for dialplan functions
#
# Copyright (C) 2005-2006, Digium, Inc.
diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c
index 737f04e18..2d79abaaf 100644
--- a/funcs/func_audiohookinherit.c
+++ b/funcs/func_audiohookinherit.c
@@ -87,4 +87,3 @@ static int load_module(void)
}
}
AST_MODULE_INFO_STANDARD_DEPRECATED(ASTERISK_GPL_KEY, "Audiohook inheritance placeholder function");
-
diff --git a/funcs/func_base64.c b/funcs/func_base64.c
index 1a7619d91..5575f0778 100644
--- a/funcs/func_base64.c
+++ b/funcs/func_base64.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief Use the base64 as functions
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_blacklist.c b/funcs/func_blacklist.c
index bb045059b..cd57e9975 100644
--- a/funcs/func_blacklist.c
+++ b/funcs/func_blacklist.c
@@ -23,7 +23,7 @@
* \author Mark Spencer <markster@digium.com>
*
* \ingroup functions
- *
+ *
*/
/*** MODULEINFO
diff --git a/funcs/func_config.c b/funcs/func_config.c
index ca6dad1a1..c1f468540 100644
--- a/funcs/func_config.c
+++ b/funcs/func_config.c
@@ -23,7 +23,7 @@
*
* \author Russell Bryant <russell@digium.com>
* \author Tilghman Lesher <func_config__200803@the-tilghman.com>
- *
+ *
* \ingroup functions
*/
@@ -107,7 +107,7 @@ static int config_function_read(struct ast_channel *chan, const char *cmd, char
ast_log(LOG_ERROR, "AST_CONFIG() requires a category\n");
return -1;
}
-
+
if (ast_strlen_zero(args.variable)) {
ast_log(LOG_ERROR, "AST_CONFIG() requires a variable\n");
return -1;
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index c7a1c6e42..b1bb75964 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -18,18 +18,18 @@
*/
/*! \file
- *
+ *
* \brief Curl - Load a URL
*
* \author Tilghman Lesher <curl-20050919@the-tilghman.com>
*
- * \note Brian Wilkins <bwilkins@cfl.rr.com> (Added POST option)
+ * \note Brian Wilkins <bwilkins@cfl.rr.com> (Added POST option)
*
* \extref Depends on the CURL library - http://curl.haxx.se/
- *
+ *
* \ingroup functions
*/
-
+
/*** MODULEINFO
<depend>curl</depend>
<support_level>core</support_level>
@@ -881,4 +881,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "Load external URL",
.unload = unload_module,
.load_pri = AST_MODPRI_REALTIME_DEPEND2,
);
-
diff --git a/funcs/func_cut.c b/funcs/func_cut.c
index 4b6dc9d48..693c67595 100644
--- a/funcs/func_cut.c
+++ b/funcs/func_cut.c
@@ -16,7 +16,7 @@
*/
/*! \file
- *
+ *
* \brief CUT function
*
* \author Tilghman Lesher <app_cut__v003@the-tilghman.com>
@@ -41,7 +41,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/*** DOCUMENTATION
<function name="SORT" language="en_US">
<synopsis>
- Sorts a list of key/vals into a list of keys, based upon the vals.
+ Sorts a list of key/vals into a list of keys, based upon the vals.
</synopsis>
<syntax>
<parameter name="keyval" required="true" argsep=":">
@@ -61,7 +61,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</function>
<function name="CUT" language="en_US">
<synopsis>
- Slices and dices strings, based upon a named delimiter.
+ Slices and dices strings, based upon a named delimiter.
</synopsis>
<syntax>
<parameter name="varname" required="true">
@@ -77,7 +77,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</syntax>
<description>
<para>Cut out information from a string (<replaceable>varname</replaceable>), based upon a named delimiter.</para>
- </description>
+ </description>
</function>
***/
diff --git a/funcs/func_db.c b/funcs/func_db.c
index b56fef9f5..37c760045 100644
--- a/funcs/func_db.c
+++ b/funcs/func_db.c
@@ -1,9 +1,9 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 2005-2006, Russell Bryant <russelb@clemson.edu>
+ * Copyright (C) 2005-2006, Russell Bryant <russelb@clemson.edu>
*
- * func_db.c adapted from the old app_db.c, copyright by the following people
+ * func_db.c adapted from the old app_db.c, copyright by the following people
* Copyright (C) 2005, Mark Spencer <markster@digium.com>
* Copyright (C) 2003, Jefferson Noxon <jeff@debian.org>
*
diff --git a/funcs/func_devstate.c b/funcs/func_devstate.c
index 21759bc33..48f5c08c4 100644
--- a/funcs/func_devstate.c
+++ b/funcs/func_devstate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2007, Digium, Inc.
*
- * Russell Bryant <russell@digium.com>
+ * Russell Bryant <russell@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -20,7 +20,7 @@
*
* \brief Manually controlled blinky lights
*
- * \author Russell Bryant <russell@digium.com>
+ * \author Russell Bryant <russell@digium.com>
*
* \ingroup functions
*
diff --git a/funcs/func_dialplan.c b/funcs/func_dialplan.c
index 0f3c0f823..e1a4f7a2c 100644
--- a/funcs/func_dialplan.c
+++ b/funcs/func_dialplan.c
@@ -20,7 +20,7 @@
*
* \author Gregory Nietsky AKA irroot <gregory@networksentry.co.za>
* \author Russell Bryant <russell@digium.com>
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_enum.c b/funcs/func_enum.c
index 4b5fb9f7b..95e8d21f4 100644
--- a/funcs/func_enum.c
+++ b/funcs/func_enum.c
@@ -81,7 +81,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<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>
@@ -89,7 +89,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<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.
@@ -119,10 +119,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<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">
@@ -226,7 +226,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;
@@ -240,7 +240,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);
@@ -249,7 +249,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)
{
@@ -270,7 +270,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) {
@@ -308,9 +308,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;
@@ -323,7 +323,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);
);
@@ -337,7 +337,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);
@@ -383,7 +383,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
diff --git a/funcs/func_extstate.c b/funcs/func_extstate.c
index 940c455c2..75771082e 100644
--- a/funcs/func_extstate.c
+++ b/funcs/func_extstate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2007, Digium, Inc.
*
- * Modified from func_devstate.c by Russell Bryant <russell@digium.com>
+ * Modified from func_devstate.c by Russell Bryant <russell@digium.com>
* Adam Gundy <adam@starsilk.net>
* See http://www.asterisk.org for more information about
@@ -21,7 +21,7 @@
*
* \brief Get the state of a hinted extension for dialplan control
*
- * \author Adam Gundy <adam@starsilk.net>
+ * \author Adam Gundy <adam@starsilk.net>
*
* \ingroup functions
*/
@@ -44,7 +44,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<function name="EXTENSION_STATE" language="en_US">
<synopsis>
Get an extension's state.
- </synopsis>
+ </synopsis>
<syntax argsep="@">
<parameter name="extension" required="true" />
<parameter name="context">
@@ -117,7 +117,7 @@ static int extstate_read(struct ast_channel *chan, const char *cmd, char *data,
return -1;
}
- ast_copy_string(buf,
+ ast_copy_string(buf,
ast_extstate_str(ast_extension_state(chan, context, exten)), len);
return 0;
diff --git a/funcs/func_frame_trace.c b/funcs/func_frame_trace.c
index 512d685f1..80156fee0 100644
--- a/funcs/func_frame_trace.c
+++ b/funcs/func_frame_trace.c
@@ -429,5 +429,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Frame Trace for internal ast_frame debugging.");
-
-
diff --git a/funcs/func_global.c b/funcs/func_global.c
index a2329c46e..1e58e75c1 100644
--- a/funcs/func_global.c
+++ b/funcs/func_global.c
@@ -72,7 +72,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<para>Implements a shared variable area, in which you may share variables between
channels.</para>
<para>The variables used in this space are separate from the general namespace of
- the channel and thus <variable>SHARED(foo)</variable> and <variable>foo</variable>
+ the channel and thus <variable>SHARED(foo)</variable> and <variable>foo</variable>
represent two completely different variables, despite sharing the same name.</para>
<para>Finally, realize that there is an inherent race between channels operating
at the same time, fiddling with each others' internal variables, which is why
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index fd775d994..5c6439ba4 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -17,7 +17,7 @@
/*! \file
*
* \brief Channel group related dialplan functions
- *
+ *
* \ingroup functions
*/
@@ -81,7 +81,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</parameter>
</syntax>
<description>
- <para><replaceable>category</replaceable> can be employed for more fine grained group management. Each channel
+ <para><replaceable>category</replaceable> can be employed for more fine grained group management. Each channel
can only be member of exactly one group per <replaceable>category</replaceable>.</para>
</description>
</function>
@@ -195,14 +195,14 @@ static int group_function_read(struct ast_channel *chan, const char *cmd,
if (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, data))
break;
}
-
+
if (gi) {
ast_copy_string(buf, gi->group, len);
ret = 0;
}
-
+
ast_app_group_list_unlock();
-
+
return ret;
}
@@ -267,7 +267,7 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
snprintf(tmp1, sizeof(tmp1), "%s", gi->group);
}
}
-
+
ast_app_group_list_unlock();
ast_copy_string(buf, tmp1, len);
diff --git a/funcs/func_iconv.c b/funcs/func_iconv.c
index 0a8e57dd7..f2ff80389 100644
--- a/funcs/func_iconv.c
+++ b/funcs/func_iconv.c
@@ -45,7 +45,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/*** DOCUMENTATION
<function name="ICONV" language="en_US">
<synopsis>
- Converts charsets of strings.
+ Converts charsets of strings.
</synopsis>
<syntax>
<parameter name="in-charset" required="true">
@@ -68,10 +68,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
***/
-/*!
+/*!
* Some systems define the second arg to iconv() as (const char *),
- * while others define it as (char *). Cast it to a (void *) to
- * suppress compiler warnings about it.
+ * while others define it as (char *). Cast it to a (void *) to
+ * suppress compiler warnings about it.
*/
#define AST_ICONV_CAST void *
@@ -143,4 +143,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Charset conversions");
-
diff --git a/funcs/func_jitterbuffer.c b/funcs/func_jitterbuffer.c
index e33b2c23a..57e0e4f4e 100644
--- a/funcs/func_jitterbuffer.c
+++ b/funcs/func_jitterbuffer.c
@@ -181,4 +181,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Jitter buffer for read side of channel.");
-
diff --git a/funcs/func_lock.c b/funcs/func_lock.c
index 2102d5c9a..e56d56dcb 100644
--- a/funcs/func_lock.c
+++ b/funcs/func_lock.c
@@ -23,7 +23,7 @@
* \author Tilghman Lesher <func_lock_2007@the-tilghman.com>
*
* \ingroup functions
- *
+ *
*/
/*** MODULEINFO
@@ -75,7 +75,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</syntax>
<description>
<para>Attempts to grab a named lock exclusively, and prevents other channels
- from obtaining the same lock. Returns <literal>1</literal> if the lock was
+ from obtaining the same lock. Returns <literal>1</literal> if the lock was
available or <literal>0</literal> otherwise.</para>
<note>
<para>If <literal>live_dangerously</literal> in <literal>asterisk.conf</literal>
@@ -92,9 +92,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<parameter name="lockname" required="true" />
</syntax>
<description>
- <para>Unlocks a previously locked mutex. Returns <literal>1</literal> if the channel
+ <para>Unlocks a previously locked mutex. Returns <literal>1</literal> if the channel
had a lock or <literal>0</literal> otherwise.</para>
- <note><para>It is generally unnecessary to unlock in a hangup routine, as any locks
+ <note><para>It is generally unnecessary to unlock in a hangup routine, as any locks
held are automatically freed when the channel is destroyed.</para></note>
<note>
<para>If <literal>live_dangerously</literal> in <literal>asterisk.conf</literal>
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index e371f7ec1..dd55cb903 100644
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -16,9 +16,9 @@
*/
/*! \file
- *
+ *
* \brief Conditional logic dialplan functions
- *
+ *
* \author Anthony Minessale II
*
* \ingroup functions
@@ -85,7 +85,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</syntax>
<description>
<para>Returns the data following <literal>?</literal> if true, else the data following <literal>:</literal></para>
- </description>
+ </description>
</function>
<function name="IFTIME" language="en_US">
<synopsis>
@@ -184,7 +184,7 @@ static int acf_if(struct ast_channel *chan, const char *cmd, char *data, char *b
-- and if you mod the ast_app_separate_args func instead, you'll really
mess things up badly, because the rest of everything depends on null args
for non-specified stuff. */
-
+
AST_NONSTANDARD_APP_ARGS(args1, data, '?');
AST_NONSTANDARD_APP_ARGS(args2, args1.remainder, ':');
diff --git a/funcs/func_md5.c b/funcs/func_md5.c
index 2e6018586..85b9c4905 100644
--- a/funcs/func_md5.c
+++ b/funcs/func_md5.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2005-2006, Digium, Inc.
* Copyright (C) 2005, Olle E. Johansson, Edvina.net
- * Copyright (C) 2005, Russell Bryant <russelb@clemson.edu>
+ * Copyright (C) 2005, Russell Bryant <russelb@clemson.edu>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -19,7 +19,7 @@
/*! \file
*
* \brief MD5 digest related dialplan functions
- *
+ *
* \author Olle E. Johansson <oej@edvina.net>
* \author Russell Bryant <russelb@clemson.edu>
*
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 84b6e686b..5785441ec 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -56,8 +56,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<parameter name="result-id" required="true" />
</syntax>
<description>
- <para>For queries which are marked as mode=multirow, the original
- query returns a <replaceable>result-id</replaceable> from which results
+ <para>For queries which are marked as mode=multirow, the original
+ query returns a <replaceable>result-id</replaceable> from which results
may be fetched. This function implements the actual fetch of the results.</para>
<para>This also sets <variable>ODBC_FETCH_STATUS</variable>.</para>
<variablelist>
@@ -80,7 +80,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<parameter name="result-id" required="true" />
</syntax>
<description>
- <para>For queries which are marked as mode=multirow, this will clear
+ <para>For queries which are marked as mode=multirow, this will clear
any remaining rows of the specified resultset.</para>
</description>
</application>
@@ -92,7 +92,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<parameter name="string" required="true" />
</syntax>
<description>
- <para>Used in SQL templates to escape data which may contain single ticks
+ <para>Used in SQL templates to escape data which may contain single ticks
<literal>'</literal> which are otherwise used to delimit data.</para>
<para>Example: SELECT foo FROM bar WHERE baz='${SQL_ESC(${ARG1})}'</para>
</description>
@@ -1919,4 +1919,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "ODBC lookups",
.unload = unload_module,
.reload = reload,
);
-
diff --git a/funcs/func_pitchshift.c b/funcs/func_pitchshift.c
index bec5f71dd..88c2ef19a 100644
--- a/funcs/func_pitchshift.c
+++ b/funcs/func_pitchshift.c
@@ -510,4 +510,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Audio Effects Dialplan Functions");
-
diff --git a/funcs/func_presencestate.c b/funcs/func_presencestate.c
index ad452df66..ffde81578 100644
--- a/funcs/func_presencestate.c
+++ b/funcs/func_presencestate.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011, Digium, Inc.
*
- * David Vossel <dvossel@digium.com>
+ * David Vossel <dvossel@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -455,7 +455,7 @@ struct test_string {
int value;
const char *subtype;
const char *message;
- const char *options;
+ const char *options;
} outputs;
};
@@ -467,7 +467,7 @@ AST_TEST_DEFINE(test_valid_parse_data)
char *message;
char *options;
enum ast_test_result_state res = AST_TEST_PASS;
-
+
struct test_string tests [] = {
{ "away",
{ AST_PRESENCE_AWAY,
@@ -884,4 +884,3 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "Gets or sets a presen
.unload = unload_module,
.load_pri = AST_MODPRI_DEVSTATE_PROVIDER,
);
-
diff --git a/funcs/func_rand.c b/funcs/func_rand.c
index 6491b371d..2d2a85f7a 100644
--- a/funcs/func_rand.c
+++ b/funcs/func_rand.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief Generate Random Number
- *
+ *
* \author Claude Patry <cpatry@gmail.com>
* \author Tilghman Lesher ( http://asterisk.drunkcoder.com/ )
* \ingroup functions
@@ -41,15 +41,15 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/*** DOCUMENTATION
<function name="RAND" language="en_US">
<synopsis>
- Choose a random number in a range.
+ Choose a random number in a range.
</synopsis>
<syntax>
<parameter name="min" />
<parameter name="max" />
</syntax>
<description>
- <para>Choose a random number between <replaceable>min</replaceable> and <replaceable>max</replaceable>.
- <replaceable>min</replaceable> defaults to <literal>0</literal>, if not specified, while <replaceable>max</replaceable> defaults
+ <para>Choose a random number between <replaceable>min</replaceable> and <replaceable>max</replaceable>.
+ <replaceable>min</replaceable> defaults to <literal>0</literal>, if not specified, while <replaceable>max</replaceable> defaults
to <literal>RAND_MAX</literal> (2147483647 on many systems).</para>
<para>Example: Set(junky=${RAND(1,8)});
Sets junky to a random number between 1 and 8, inclusive.</para>
diff --git a/funcs/func_sha1.c b/funcs/func_sha1.c
index c6b757545..3e3c36526 100644
--- a/funcs/func_sha1.c
+++ b/funcs/func_sha1.c
@@ -18,7 +18,7 @@
/*! \file
*
* \brief SHA1 digest related dialplan functions
- *
+ *
* \author Claude Patry <cpatry@gmail.com>
*
* \ingroup functions
@@ -49,7 +49,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<para>Generate a SHA1 digest via the SHA1 algorythm.</para>
<para>Example: Set(sha1hash=${SHA1(junky)})</para>
<para>Sets the asterisk variable sha1hash to the string <literal>60fa5675b9303eb62f99a9cd47f9f5837d18f9a0</literal>
- which is known as his hash</para>
+ which is known as his hash</para>
</description>
</function>
***/
diff --git a/funcs/func_sorcery.c b/funcs/func_sorcery.c
index 1671b3f05..8f631c5ea 100644
--- a/funcs/func_sorcery.c
+++ b/funcs/func_sorcery.c
@@ -218,4 +218,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Get a field from a sorcery object");
-
diff --git a/funcs/func_speex.c b/funcs/func_speex.c
index d0d451bd1..816868ffc 100644
--- a/funcs/func_speex.c
+++ b/funcs/func_speex.c
@@ -4,7 +4,7 @@
* Copyright (C) 2008, Digium, Inc.
*
* Brian Degenhardt <bmd@digium.com>
- * Brett Bryant <bbryant@digium.com>
+ * Brett Bryant <bbryant@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -21,8 +21,8 @@
*
* \brief Noise reduction and automatic gain control (AGC)
*
- * \author Brian Degenhardt <bmd@digium.com>
- * \author Brett Bryant <bbryant@digium.com>
+ * \author Brian Degenhardt <bmd@digium.com>
+ * \author Brett Bryant <bbryant@digium.com>
*
* \ingroup functions
*
@@ -65,7 +65,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
channel that it is executed on. Using <literal>rx</literal> for audio received
and <literal>tx</literal> for audio transmitted to the channel. When using this
function you set a target audio level. It is primarily intended for use with
- analog lines, but could be useful for other channels as well. The target volume
+ analog lines, but could be useful for other channels as well. The target volume
is set with a number between <literal>1-32768</literal>. The larger the number
the louder (more gain) the channel will receive.</para>
<para>Examples:</para>
@@ -79,7 +79,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</synopsis>
<syntax>
<parameter name="channeldirection" required="true">
- <para>This can be either <literal>rx</literal> or <literal>tx</literal>
+ <para>This can be either <literal>rx</literal> or <literal>tx</literal>
the values that can be set to this are either <literal>on</literal> and
<literal>off</literal></para>
</parameter>
@@ -110,7 +110,7 @@ struct speex_info {
struct speex_direction_info *tx, *rx;
};
-static void destroy_callback(void *data)
+static void destroy_callback(void *data)
{
struct speex_info *si = data;
@@ -253,13 +253,13 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co
if (!strcasecmp(cmd, "agc")) {
if (!sscanf(value, "%30f", &(*sdi)->agclevel))
(*sdi)->agclevel = ast_true(value) ? DEFAULT_AGC_LEVEL : 0.0;
-
+
if ((*sdi)->agclevel > 32768.0) {
- ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n",
+ ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n",
((*sdi == si->rx) ? "rx" : "tx"), (*sdi)->agclevel);
(*sdi)->agclevel = 32768.0;
}
-
+
(*sdi)->agc = !!((*sdi)->agclevel);
if ((*sdi)->state) {
@@ -294,11 +294,11 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co
ast_audiohook_remove(chan, &si->audiohook);
ast_audiohook_detach(&si->audiohook);
}
-
+
ast_datastore_free(datastore);
}
- if (is_new) {
+ if (is_new) {
datastore->data = si;
ast_channel_lock(chan);
ast_channel_datastore_add(chan, datastore);
diff --git a/funcs/func_sprintf.c b/funcs/func_sprintf.c
index 4d5fc7a6c..101eefc7e 100644
--- a/funcs/func_sprintf.c
+++ b/funcs/func_sprintf.c
@@ -21,7 +21,7 @@
* \brief String manipulation dialplan functions
*
* \author Tilghman Lesher
- * \author Anothony Minessale II
+ * \author Anothony Minessale II
* \ingroup functions
*/
@@ -55,7 +55,7 @@ AST_THREADSTORAGE(result_buf);
<parameter name="argN" />
</syntax>
<description>
- <para>Parses the format string specified and returns a string matching
+ <para>Parses the format string specified and returns a string matching
that format. Supports most options found in <emphasis>sprintf(3)</emphasis>.
Returns a shortened string if a format specifier is not recognized.</para>
</description>
diff --git a/funcs/func_srv.c b/funcs/func_srv.c
index 3786a2fa2..c21dd9814 100644
--- a/funcs/func_srv.c
+++ b/funcs/func_srv.c
@@ -140,7 +140,7 @@ static int srv_query_read(struct ast_channel *chan, const char *cmd, char *data,
ast_log(LOG_WARNING, "%s requires a service as an argument\n", cmd);
return -1;
}
-
+
/* If they already called SRVQUERY for this service once,
* we need to kill the old datastore.
*/
@@ -152,7 +152,7 @@ static int srv_query_read(struct ast_channel *chan, const char *cmd, char *data,
ast_channel_datastore_remove(chan, datastore);
ast_datastore_free(datastore);
}
-
+
if (!srv_datastore_setup(data, chan)) {
return -1;
}
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index c76bddc51..eecbb5806 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -21,7 +21,7 @@
* \brief String manipulation dialplan functions
*
* \author Tilghman Lesher
- * \author Anothony Minessale II
+ * \author Anothony Minessale II
* \ingroup functions
*/
@@ -108,13 +108,13 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="string" required="true" />
</syntax>
<description>
- <para>Permits all characters listed in <replaceable>allowed-chars</replaceable>,
- filtering all others outs. In addition to literally listing the characters,
+ <para>Permits all characters listed in <replaceable>allowed-chars</replaceable>,
+ filtering all others outs. In addition to literally listing the characters,
you may also use ranges of characters (delimited by a <literal>-</literal></para>
<para>Hexadecimal characters started with a <literal>\x</literal>(i.e. \x20)</para>
<para>Octal characters started with a <literal>\0</literal> (i.e. \040)</para>
- <para>Also <literal>\t</literal>,<literal>\n</literal> and <literal>\r</literal> are recognized.</para>
- <note><para>If you want the <literal>-</literal> character it needs to be prefixed with a
+ <para>Also <literal>\t</literal>,<literal>\n</literal> and <literal>\r</literal> are recognized.</para>
+ <note><para>If you want the <literal>-</literal> character it needs to be prefixed with a
<literal>\</literal></para></note>
</description>
</function>
@@ -181,9 +181,9 @@ AST_THREADSTORAGE(tmp_buf);
</syntax>
<description>
<para>Return <literal>1</literal> on regular expression match or <literal>0</literal> otherwise</para>
- <para>Please note that the space following the double quotes separating the
- regex from the data is optional and if present, is skipped. If a space is
- desired at the beginning of the data, then put two spaces there; the second
+ <para>Please note that the space following the double quotes separating the
+ regex from the data is optional and if present, is skipped. If a space is
+ desired at the beginning of the data, then put two spaces there; the second
will not be skipped.</para>
</description>
</function>
@@ -220,8 +220,8 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="hashname" required="true" />
</syntax>
<description>
- <para>Returns a comma-delimited list of the current keys of the associative array
- defined by the HASH() function. Note that if you iterate over the keys of
+ <para>Returns a comma-delimited list of the current keys of the associative array
+ defined by the HASH() function. Note that if you iterate over the keys of
the result, adding keys during iteration will cause the result of the HASHKEYS()
function to change.</para>
</description>
@@ -247,8 +247,8 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="varN" required="false" />
</syntax>
<description>
- <para>The comma-delimited list passed as a value to which the function is set will
- be interpreted as a set of values to which the comma-delimited list of
+ <para>The comma-delimited list passed as a value to which the function is set will
+ be interpreted as a set of values to which the comma-delimited list of
variable names in the argument should be set.</para>
<para>Example: Set(ARRAY(var1,var2)=1,2) will set var1 to 1 and var2 to 2</para>
</description>
@@ -263,7 +263,7 @@ AST_THREADSTORAGE(tmp_buf);
<parameter name="format" required="true" />
</syntax>
<description>
- <para>This is useful for converting a date into <literal>EPOCH</literal> time,
+ <para>This is useful for converting a date into <literal>EPOCH</literal> time,
possibly to pass to an application like SayUnixTime or to calculate the difference
between the two date strings</para>
<para>Example: ${STRPTIME(2006-03-01 07:30:35,America/Chicago,%Y-%m-%d %H:%M:%S)} returns 1141219835</para>
@@ -386,7 +386,7 @@ AST_THREADSTORAGE(tmp_buf);
NoOp(var is three) being executed.
</para>
</description>
- </function>
+ </function>
<function name="POP" language="en_US">
<synopsis>
Removes and returns the last item off of a variable containing delimited text
@@ -406,7 +406,7 @@ AST_THREADSTORAGE(tmp_buf);
NoOp(var is one) being executed.
</para>
</description>
- </function>
+ </function>
<function name="PUSH" language="en_US">
<synopsis>
Appends one or more values to the end of a variable containing delimited text
@@ -976,7 +976,7 @@ static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *b
ast_log(LOG_WARNING, "Malformed input %s(%s): %s\n", cmd, parse, buf);
return -1;
}
-
+
strcpy(buf, regexec(&regexbuf, args.str, 0, NULL, 0) ? "0" : "1");
regfree(&regexbuf);
@@ -1903,7 +1903,7 @@ AST_TEST_DEFINE(test_STRREPLACE)
ast_channel_release(chan);
return AST_TEST_FAIL;
}
-
+
AST_LIST_INSERT_HEAD(ast_channel_varshead(chan), var, entries);
if (test_strings[i][3]) {
diff --git a/funcs/func_sysinfo.c b/funcs/func_sysinfo.c
index 8da94dd33..a2d0aabdd 100644
--- a/funcs/func_sysinfo.c
+++ b/funcs/func_sysinfo.c
@@ -17,7 +17,7 @@
/*! \file
*
* SYSINFO function to return various system data.
- *
+ *
* \note Inspiration and Guidance from Russell
*
* \author Jeff Peeler
@@ -132,7 +132,7 @@ static int sysinfo_helper(struct ast_channel *chan, const char *cmd, char *data,
ast_log(LOG_ERROR, "Unknown sysinfo parameter type '%s'.\n", data);
return -1;
}
-
+
return 0;
}
@@ -153,4 +153,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "System information related functions");
-
diff --git a/funcs/func_timeout.c b/funcs/func_timeout.c
index b757e998f..748e04e5d 100644
--- a/funcs/func_timeout.c
+++ b/funcs/func_timeout.c
@@ -20,7 +20,7 @@
*
* \brief Channel timeout related dialplan functions
*
- * \author Mark Spencer <markster@digium.com>
+ * \author Mark Spencer <markster@digium.com>
* \ingroup functions
*/
@@ -46,7 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
<syntax>
<parameter name="timeouttype" required="true">
<para>The timeout that will be manipulated. The possible timeout types
- are: <literal>absolute</literal>, <literal>digit</literal> or
+ are: <literal>absolute</literal>, <literal>digit</literal> or
<literal>response</literal></para>
</parameter>
</syntax>
diff --git a/funcs/func_uri.c b/funcs/func_uri.c
index f53b75fa3..bcf64bb89 100644
--- a/funcs/func_uri.c
+++ b/funcs/func_uri.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 1999 - 2006, Digium, Inc.
*
- * Created by Olle E. Johansson, Edvina.net
+ * Created by Olle E. Johansson, Edvina.net
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -21,10 +21,10 @@
* \brief URI encoding / decoding
*
* \author Olle E. Johansson <oej@edvina.net>
- *
+ *
* \note For now this code only supports 8 bit characters, not unicode,
which we ultimately will need to support.
- *
+ *
* \ingroup functions
*/
diff --git a/funcs/func_version.c b/funcs/func_version.c
index da733d1e3..cf4533f0e 100644
--- a/funcs/func_version.c
+++ b/funcs/func_version.c
@@ -17,7 +17,7 @@
/*! \file
*
* \brief Return the current Version strings
- *
+ *
* \author Steve Murphy (murf@digium.com)
* \ingroup functions
*/
diff --git a/funcs/func_vmcount.c b/funcs/func_vmcount.c
index 6c98e72f6..889d210a1 100644
--- a/funcs/func_vmcount.c
+++ b/funcs/func_vmcount.c
@@ -2,7 +2,7 @@
* Asterisk -- An open source telephony toolkit.
*
* Copyright (c) 2006 Tilghman Lesher. All rights reserved.
- *
+ *
* Tilghman Lesher <asterisk-vmcount-func@the-tilghman.com>
*
* See http://www.asterisk.org for more information about
@@ -55,7 +55,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
</parameter>
</syntax>
<description>
- <para>Count the number of voicemails in a specified mailbox, you could also specify
+ <para>Count the number of voicemails in a specified mailbox, you could also specify
the mailbox <replaceable>folder</replaceable>.</para>
<para>Example: <literal>exten => s,1,Set(foo=${VMCOUNT(125@default)})</literal></para>
</description>
@@ -85,7 +85,7 @@ static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *arg
}
snprintf(buf, len, "%d", ast_app_messagecount(args.vmbox, args.folder));
-
+
return 0;
}
diff --git a/funcs/func_volume.c b/funcs/func_volume.c
index 9fd02008f..f381c413b 100644
--- a/funcs/func_volume.c
+++ b/funcs/func_volume.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011, Digium, Inc.
*
- * Joshua Colp <jcolp@digium.com>
+ * Joshua Colp <jcolp@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
@@ -20,7 +20,7 @@
*
* \brief Technology independent volume control
*
- * \author Joshua Colp <jcolp@digium.com>
+ * \author Joshua Colp <jcolp@digium.com>
*
* \ingroup functions
*
@@ -126,7 +126,7 @@ static int volume_callback(struct ast_audiohook *audiohook, struct ast_channel *
if (frame->frametype == AST_FRAME_DTMF) {
/* Only use DTMF coming from the source... not going to it */
if (direction != AST_AUDIOHOOK_DIRECTION_READ)
- return 0;
+ return 0;
if (frame->subclass.integer == '*') {
vi->tx_gain += 1;
vi->rx_gain += 1;
@@ -137,7 +137,7 @@ static int volume_callback(struct ast_audiohook *audiohook, struct ast_channel *
}
}
-
+
if (frame->frametype == AST_FRAME_VOICE) {
/* Based on direction of frame grab the gain, and confirm it is applicable */
if (!(gain = (direction == AST_AUDIOHOOK_DIRECTION_READ) ? &vi->rx_gain : &vi->tx_gain) || !*gain)
@@ -194,8 +194,8 @@ static int volume_write(struct ast_channel *chan, const char *cmd, char *data, c
return -1;
}
- if (!strcasecmp(args.direction, "tx")) {
- vi->tx_gain = atoi(value);
+ if (!strcasecmp(args.direction, "tx")) {
+ vi->tx_gain = atoi(value);
} else if (!strcasecmp(args.direction, "rx")) {
vi->rx_gain = atoi(value);
} else {
@@ -211,13 +211,13 @@ static int volume_write(struct ast_channel *chan, const char *cmd, char *data, c
}
/* Add Option data to struct */
-
+
if (!ast_strlen_zero(args.options)) {
struct ast_flags flags = { 0 };
ast_app_parse_options(volume_opts, &flags, NULL, args.options);
vi->flags = flags.flags;
- } else {
- vi->flags = 0;
+ } else {
+ vi->flags = 0;
}
return 0;