summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPari Nannapaneni <paripurnachand@digium.com>2008-11-11 23:32:31 +0000
committerPari Nannapaneni <paripurnachand@digium.com>2008-11-11 23:32:31 +0000
commitf50966c16acf6105f02e41820acf223505d2963d (patch)
tree6f409eac3ee81aedf14e150135a004b5f4bf8bd4
parent7a2b0102f115b4590e6b37b69f6b6218b890e1e9 (diff)
changing comment style to conform coding guidelines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/manager.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/manager.c b/main/manager.c
index d86130f29..01bd1485e 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1287,17 +1287,17 @@ static enum error_type handle_updates(struct mansession *s, const struct message
struct ast_str *str1 = ast_str_create(16), *str2 = ast_str_create(16);
enum error_type result = 0;
- 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 */
result = UNSPECIFIED_CATEGORY;
break;
}
@@ -1320,8 +1320,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
- result = FAILURE_NEWCAT; //already exist
+ if (ast_category_get(cfg,cat)) { /* check to make sure the cat doesn't */
+ result = FAILURE_NEWCAT; /* already exist */
break;
}
if (!(category = ast_category_new(cat, dfn, -1))) {