[asterisk-commits] twilson: branch twilson/calendaring r156951 - /team/twilson/calendaring/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 14 12:23:33 CST 2008


Author: twilson
Date: Fri Nov 14 12:23:32 2008
New Revision: 156951

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156951
Log:
More mark fixes

Modified:
    team/twilson/calendaring/main/calendar.c

Modified: team/twilson/calendaring/main/calendar.c
URL: http://svn.digium.com/view/asterisk/team/twilson/calendaring/main/calendar.c?view=diff&rev=156951&r1=156950&r2=156951
==============================================================================
--- team/twilson/calendaring/main/calendar.c (original)
+++ team/twilson/calendaring/main/calendar.c Fri Nov 14 12:23:32 2008
@@ -90,7 +90,7 @@
 static int calendar_cmp_fn(void *obj, void *arg, void *data, int flags)
 {
 	const struct ast_calendar *one = obj, *two = arg;
-	return !strcasecmp(one->name, two->name) ? CMP_MATCH : 0;
+	return !strcasecmp(one->name, two->name) ? CMP_MATCH | CMP_STOP: 0;
 }
 
 static struct ast_calendar *find_calendar(const char *name)
@@ -110,7 +110,7 @@
 static int event_cmp_fn(void *obj, void *arg, void *data, int flags)
 {
 	const struct ast_calendar_event *one = obj, *two = arg;
-	return !strcmp(one->uid, two->uid) ? CMP_MATCH : 0;
+	return !strcmp(one->uid, two->uid) ? CMP_MATCH | CMP_STOP : 0;
 }
 
 static struct ast_calendar_event *find_event(struct ao2_container *events, const char *uid)




More information about the asterisk-commits mailing list