[asterisk-commits] kpfleming: branch kpfleming/udptl-updates r206091 - /team/kpfleming/udptl-upd...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 13 07:51:01 CDT 2009


Author: kpfleming
Date: Mon Jul 13 07:50:56 2009
New Revision: 206091

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206091
Log:
compiling is good

Modified:
    team/kpfleming/udptl-updates/main/udptl.c

Modified: team/kpfleming/udptl-updates/main/udptl.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/kpfleming/udptl-updates/main/udptl.c?view=diff&rev=206091&r1=206090&r2=206091
==============================================================================
--- team/kpfleming/udptl-updates/main/udptl.c (original)
+++ team/kpfleming/udptl-updates/main/udptl.c Mon Jul 13 07:50:56 2009
@@ -736,7 +736,7 @@
 		break;
 	}
 	/* add 25% of extra space for insurance, but no larger than LOCAL_FAX_MAX_DATAGRAM */
-	udptl->local_max_datagram = min(new_max * 1.25, LOCAL_FAX_MAX_DATAGRAM);
+	udptl->local_max_datagram = MIN(new_max * 1.25, LOCAL_FAX_MAX_DATAGRAM);
 }
 
 static void calculate_far_max_ifp(struct ast_udptl *udptl)
@@ -829,14 +829,6 @@
 	}
 }
 
-void ast_udptl_set_local_max_datagram(struct ast_udptl *udptl, unsigned int max_datagram)
-{
-	if (udptl)
-		udptl->local_max_datagram = max_datagram;
-	else
-		ast_log(LOG_WARNING, "udptl structure is null\n");
-}
-
 void ast_udptl_set_far_max_datagram(struct ast_udptl *udptl, unsigned int max_datagram)
 {
 	if (udptl) {




More information about the asterisk-commits mailing list