From: Andre Noll Date: Sun, 13 Apr 2014 23:02:56 +0000 (+0000) Subject: com_sender: Replace memcpy by struct copy. X-Git-Tag: v0.5.4~50^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f59c7399c01c222b642096ba3440db00f3209016;ds=sidebyside com_sender: Replace memcpy by struct copy. This is equivalent and a bit easier to read. --- diff --git a/command.c b/command.c index eb15875c..fcf08035 100644 --- a/command.c +++ b/command.c @@ -364,7 +364,7 @@ static int com_sender(struct command_context *cc) usleep(100 * 1000); continue; } - memcpy(&mmd->sender_cmd_data, &scd, sizeof(scd)); + mmd->sender_cmd_data = scd; mutex_unlock(mmd_mutex); break; }