[asterisk-commits] rmudgett: branch group/CCSS r237964 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 5 18:17:35 CST 2010


Author: rmudgett
Date: Tue Jan  5 18:17:31 2010
New Revision: 237964

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=237964
Log:
Use a struct assignment instead of a memcpy().

Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=237964&r1=237963&r2=237964
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Tue Jan  5 18:17:31 2010
@@ -567,7 +567,7 @@
 
 void ast_cc_copy_config_params(struct ast_cc_config_params *dest, const struct ast_cc_config_params *src)
 {
-	memcpy(dest, src, sizeof(*dest));
+	*dest = *src;
 }
 
 enum ast_cc_agent_policies ast_get_cc_agent_policy(struct ast_cc_config_params *config)




More information about the asterisk-commits mailing list