aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 17:40:38 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 17:40:38 +0000
commitb084330f434b5a6292e646cf398b52ba38ab25f4 (patch)
tree8bb30e55d862ea6c50cb2bb7859cae2e0dfa9e1d /res/res_features.c
parent14b8809bc4105df6b2255bb86d9382a43eb365bc (diff)
Clean up a few coding guidelines issues - spaces to tabs, use sizeof() to pass
the size of a static buffer, add spaces ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@54888 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 3b07213ee..42e34bd78 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1935,17 +1935,17 @@ static struct ast_cli_entry cli_features[] = {
static int manager_parking_status( struct mansession *s, const struct message *m)
{
struct parkeduser *cur;
- const char *id = astman_get_header(m,"ActionID");
+ const char *id = astman_get_header(m, "ActionID");
char idText[256] = "";
if (!ast_strlen_zero(id))
- snprintf(idText, 256, "ActionID: %s\r\n", id);
+ snprintf(idText, sizeof(idText), "ActionID: %s\r\n", id);
astman_send_ack(s, m, "Parked calls will follow");
- ast_mutex_lock(&parking_lock);
+ ast_mutex_lock(&parking_lock);
- for (cur=parkinglot; cur; cur = cur->next) {
+ for (cur = parkinglot; cur; cur = cur->next) {
astman_append(s, "Event: ParkedCall\r\n"
"Exten: %d\r\n"
"Channel: %s\r\n"
@@ -1955,21 +1955,21 @@ static int manager_parking_status( struct mansession *s, const struct message *m
"CallerIDName: %s\r\n"
"%s"
"\r\n",
- cur->parkingnum, cur->chan->name, cur->peername,
- (long)cur->start.tv_sec + (long)(cur->parkingtime/1000) - (long)time(NULL),
+ cur->parkingnum, cur->chan->name, cur->peername,
+ (long) cur->start.tv_sec + (long) (cur->parkingtime / 1000) - (long) time(NULL),
S_OR(cur->chan->cid.cid_num, ""), /* XXX in other places it is <unknown> */
S_OR(cur->chan->cid.cid_name, ""),
idText);
- }
+ }
astman_append(s,
"Event: ParkedCallsComplete\r\n"
"%s"
"\r\n",idText);
- ast_mutex_unlock(&parking_lock);
+ ast_mutex_unlock(&parking_lock);
- return RESULT_SUCCESS;
+ return RESULT_SUCCESS;
}
static char mandescr_park[] =