[asterisk-commits] mmichelson: branch mmichelson/queue-reset r167167 - /team/mmichelson/queue-re...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jan 4 14:44:07 CST 2009
Author: mmichelson
Date: Sun Jan 4 14:44:07 2009
New Revision: 167167
URL: http://svn.digium.com/view/asterisk?view=rev&rev=167167
Log:
A minor flag-handling optimization
I had hesitated to do this before because I wanted
to preserve what little bit of encapsulation the
ast_flags API offers, but really, who am I kidding.
Modified:
team/mmichelson/queue-reset/apps/app_queue.c
Modified: team/mmichelson/queue-reset/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/queue-reset/apps/app_queue.c?view=diff&rev=167167&r1=167166&r2=167167
==============================================================================
--- team/mmichelson/queue-reset/apps/app_queue.c (original)
+++ team/mmichelson/queue-reset/apps/app_queue.c Sun Jan 4 14:44:07 2009
@@ -6350,10 +6350,9 @@
static int manager_queue_reset(struct mansession *s, const struct message *m)
{
const char *queuename = NULL;
- struct ast_flags mask = {0,};
+ struct ast_flags mask = {QUEUE_RESET_STATS,};
queuename = astman_get_header(m, "Queue");
- ast_set_flag(&mask, QUEUE_RESET_STATS);
reload_handler(1, &mask, queuename);
return 0;
@@ -6767,7 +6766,7 @@
static char *handle_queue_reset(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- struct ast_flags mask = {0,};
+ struct ast_flags mask = {QUEUE_RESET_STATS,};
int i;
switch (cmd) {
@@ -6791,8 +6790,6 @@
if (a->argc < 3) {
return CLI_SHOWUSAGE;
}
-
- ast_set_flag(&mask, QUEUE_RESET_STATS);
if (a->argc == 3) {
reload_handler(1, &mask, NULL);
More information about the asterisk-commits
mailing list