[asterisk-commits] mmichelson: branch 1.6.1 r142143 - /branches/1.6.1/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 9 11:47:36 CDT 2008


Author: mmichelson
Date: Tue Sep  9 11:47:35 2008
New Revision: 142143

URL: http://svn.digium.com/view/asterisk?view=rev&rev=142143
Log:
Merging Revision 142090 from 1.6.0.


Modified:
    branches/1.6.1/apps/app_queue.c

Modified: branches/1.6.1/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/apps/app_queue.c?view=diff&rev=142143&r1=142142&r2=142143
==============================================================================
--- branches/1.6.1/apps/app_queue.c (original)
+++ branches/1.6.1/apps/app_queue.c Tue Sep  9 11:47:35 2008
@@ -753,18 +753,7 @@
 static int handle_statechange(void *datap)
 {
 	struct member_interface *curint;
-	char *loc;
-	char *technology;
 	struct statechange *sc = datap;
-
-	technology = ast_strdupa(sc->dev);
-	loc = strchr(technology, '/');
-	if (loc) {
-		*loc++ = '\0';
-	} else {
-		ast_free(sc);
-		return 0;
-	}
 
 	AST_LIST_LOCK(&interfaces);
 	AST_LIST_TRAVERSE(&interfaces, curint, list) {
@@ -781,12 +770,12 @@
 	AST_LIST_UNLOCK(&interfaces);
 
 	if (!curint) {
-		ast_debug(3, "Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n", technology, loc, sc->state, devstate2str(sc->state));
+		ast_debug(3, "Device '%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n", sc->dev, sc->state, devstate2str(sc->state));
 		ast_free(sc);
 		return 0;
 	}
 
-	ast_debug(1, "Device '%s/%s' changed to state '%d' (%s)\n", technology, loc, sc->state, devstate2str(sc->state));
+	ast_debug(1, "Device '%s' changed to state '%d' (%s)\n", sc->dev, sc->state, devstate2str(sc->state));
 
 	update_status(sc->dev, sc->state);
 	ast_free(sc);




More information about the asterisk-commits mailing list