diff options
author | bkruse <bkruse@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-13 19:26:21 +0000 |
---|---|---|
committer | bkruse <bkruse@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-13 19:26:21 +0000 |
commit | 3db0184ac424374ac2b835b271466b5f746be92e (patch) | |
tree | c233eb8a747dc6f541ccd9dd997c9c38e6efd2e1 /main/manager.c | |
parent | 66d9fa4e169377a2e671eade8989beade6f8f147 (diff) |
Update to Coding Guidelines
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@156653 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/manager.c b/main/manager.c index c34a23f58..6b4c7e2f0 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1245,17 +1245,17 @@ static enum error_type handle_updates(struct mansession *s, const struct message struct ast_category *category; struct ast_variable *v; - for (x = 0; x < 100000; x++) { //100000 = the max number of allowed updates + 1 + for (x = 0; x < 100000; x++) { /* 100000 = the max number of allowed updates + 1 */ unsigned int object = 0; snprintf(hdr, sizeof(hdr), "Action-%06d", x); action = astman_get_header(m, hdr); - if (ast_strlen_zero(action)) // breaks the for loop if no action header - break; // this could cause problems if actions come in misnumbered + if (ast_strlen_zero(action)) /* breaks the for loop if no action header */ + break; /* this could cause problems if actions come in misnumbered */ snprintf(hdr, sizeof(hdr), "Cat-%06d", x); cat = astman_get_header(m, hdr); - if (ast_strlen_zero(cat)) //every action needs a category + if (ast_strlen_zero(cat)) /* every action needs a category */ return UNSPECIFIED_CATEGORY; snprintf(hdr, sizeof(hdr), "Var-%06d", x); @@ -1275,8 +1275,8 @@ static enum error_type handle_updates(struct mansession *s, const struct message line = astman_get_header(m, hdr); if (!strcasecmp(action, "newcat")) { - if (ast_category_get(cfg,cat)) //check to make sure the cat doesn't - return FAILURE_NEWCAT; //already exist + if (ast_category_get(cfg,cat)) /* check to make sure the cat doesn't */ + return FAILURE_NEWCAT; /* already exist */ if (!(category = ast_category_new(cat, dfn, -1))) return FAILURE_ALLOCATION; if (ast_strlen_zero(match)) { |