Because the compiler can check types with a struct copy and memcpy() cannot.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@380856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-02-05 18:16:55 +00:00
parent 102c20519e
commit 186f8f4a39

View File

@@ -1355,7 +1355,7 @@ error:
static void conf_user_profile_copy(struct user_profile *dst, struct user_profile *src) static void conf_user_profile_copy(struct user_profile *dst, struct user_profile *src)
{ {
memcpy(dst, src, sizeof(*dst)); *dst = *src;
} }
const struct user_profile *conf_find_user_profile(struct ast_channel *chan, const char *user_profile_name, struct user_profile *result) const struct user_profile *conf_find_user_profile(struct ast_channel *chan, const char *user_profile_name, struct user_profile *result)