aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_realtime.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-12 02:44:33 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-12 02:44:33 +0000
commit15abba63d9d30f55521c820dea7e5fc97ec989cd (patch)
tree179d30875dce76d57afe5827e5ebedfff80d0e19 /funcs/func_realtime.c
parent44942cb5c11facd33835103a3611afe61924abea (diff)
Formatting fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53980 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_realtime.c')
-rw-r--r--funcs/func_realtime.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c
index 92a72974e..e129d0a95 100644
--- a/funcs/func_realtime.c
+++ b/funcs/func_realtime.c
@@ -48,7 +48,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static int function_realtime_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{
struct ast_variable *var, *head;
- struct ast_module_user *u;
+ struct ast_module_user *u;
struct ast_str *out;
size_t resultslen;
int n;
@@ -60,7 +60,6 @@ static int function_realtime_read(struct ast_channel *chan, const char *cmd, cha
AST_APP_ARG(delim2);
);
-
if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "Syntax: REALTIME(family|fieldmatch[|value[|delim1[|delim2]]]) - missing argument!\n");
return -1;
@@ -100,7 +99,7 @@ static int function_realtime_read(struct ast_channel *chan, const char *cmd, cha
static int function_realtime_write(struct ast_channel *chan, const char *cmd, char *data, const char *value)
{
- struct ast_module_user *u;
+ struct ast_module_user *u;
int res = 0;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(family);
@@ -149,18 +148,18 @@ struct ast_custom_function realtime_function = {
static int unload_module(void)
{
- int res = ast_custom_function_unregister(&realtime_function);
+ int res = ast_custom_function_unregister(&realtime_function);
ast_module_user_hangup_all();
- return res;
+ return res;
}
static int load_module(void)
{
- int res = ast_custom_function_register(&realtime_function);
+ int res = ast_custom_function_register(&realtime_function);
- return res;
+ return res;
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Read/Write values from a RealTime repository");