tab cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11171 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d7c78cbde9
commit
40114ba415
|
@ -767,16 +767,16 @@ SWITCH_STANDARD_API(limit_usage_function)
|
||||||
callback_t cbt = { 0 };
|
callback_t cbt = { 0 };
|
||||||
|
|
||||||
|
|
||||||
if (!switch_strlen_zero(cmd)) {
|
if (!switch_strlen_zero(cmd)) {
|
||||||
mydata = strdup(cmd);
|
mydata = strdup(cmd);
|
||||||
switch_assert(mydata);
|
switch_assert(mydata);
|
||||||
argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
stream->write_function(stream, "USAGE: limit_usage %s\n", LIMIT_USAGE_USAGE);
|
stream->write_function(stream, "USAGE: limit_usage %s\n", LIMIT_USAGE_USAGE);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
realm = argv[0];
|
realm = argv[0];
|
||||||
|
@ -788,7 +788,7 @@ SWITCH_STANDARD_API(limit_usage_function)
|
||||||
limit_execute_sql_callback(NULL, sql, sql2str_callback, &cbt);
|
limit_execute_sql_callback(NULL, sql, sql2str_callback, &cbt);
|
||||||
switch_safe_free(sql);
|
switch_safe_free(sql);
|
||||||
|
|
||||||
stream->write_function(stream, "%s", buf);
|
stream->write_function(stream, "%s", buf);
|
||||||
|
|
||||||
end:
|
end:
|
||||||
switch_safe_free(mydata);
|
switch_safe_free(mydata);
|
||||||
|
|
Loading…
Reference in New Issue