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/branches/1.4@54888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-02-16 17:40:38 +00:00
parent 84d057c5a5
commit 2986791f67

View File

@@ -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);
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"
@@ -1956,7 +1956,7 @@ static int manager_parking_status( struct mansession *s, const struct message *m
"%s"
"\r\n",
cur->parkingnum, cur->chan->name, cur->peername,
(long)cur->start.tv_sec + (long)(cur->parkingtime/1000) - (long)time(NULL),
(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);