[asterisk-commits] mvanbaak: branch group/multiparking r105143 - /team/group/multiparking/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 28 16:38:06 CST 2008


Author: mvanbaak
Date: Thu Feb 28 16:38:06 2008
New Revision: 105143

URL: http://svn.digium.com/view/asterisk?view=rev&rev=105143
Log:
thanks to putnopvut I finally start to get this AST_LIST stuff.
As far as I can see, the manage_parkinglot function now has this implemented.

Modified:
    team/group/multiparking/main/features.c

Modified: team/group/multiparking/main/features.c
URL: http://svn.digium.com/view/asterisk/team/group/multiparking/main/features.c?view=diff&rev=105143&r1=105142&r2=105143
==============================================================================
--- team/group/multiparking/main/features.c (original)
+++ team/group/multiparking/main/features.c Thu Feb 28 16:38:06 2008
@@ -2262,7 +2262,7 @@
 
 	int ms = -1;	/* select timeout, uninitialized */
 	int max = -1;	/* max fd, none there yet */
-	struct parkeduser *pu, *pl = NULL, *pt = NULL;
+	struct parkeduser *pu;
 	int res = 0;
 
 	parkinglot_addref(curlot);
@@ -2355,7 +2355,7 @@
 			} else
 				ast_log(LOG_WARNING, "Whoa, no parking context?\n");
 			//free(pt);
-			AST_LIST_REMOVE_CURRENT(&curlot->parkings, list);
+			AST_LIST_REMOVE_CURRENT(list);
 			parkinglot_unref(curlot);
 		} else {	/* still within parking time, process descriptors */
 			for (x = 0; x < AST_MAX_FDS; x++) {
@@ -2397,7 +2397,7 @@
 					} else
 						ast_log(LOG_WARNING, "Whoa, no parking context for parking lot %s?\n", curlot->name);
 					//free(pt);
-					AST_LIST_REMOVE_CURRENT(&curlot->parkings, list);
+					AST_LIST_REMOVE_CURRENT(list);
 					parkinglot_unref(curlot);
 					break;
 				} else {
@@ -2430,7 +2430,7 @@
 			}
 		}
 	}
-	AST_LIST_TRAVERSE_SAFE_END();
+	AST_LIST_TRAVERSE_SAFE_END;
 	AST_LIST_UNLOCK(&curlot->parkings);
 
 	ASTOBJ_UNLOCK(curlot);




More information about the asterisk-commits mailing list