From a8309d1a3c9b3b857449fd3b89a92c5ed5a28719 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 16 Feb 2007 17:44:39 +0000 Subject: [PATCH] Merged revisions 54888 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54888 | russell | 2007-02-16 11:40:38 -0600 (Fri, 16 Feb 2007) | 3 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@54890 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_features.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/res/res_features.c b/res/res_features.c index c14f39fde2..06647c904d 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1948,17 +1948,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" @@ -1968,21 +1968,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 */ 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[] =