From f59c7399c01c222b642096ba3440db00f3209016 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 13 Apr 2014 23:02:56 +0000 Subject: [PATCH] com_sender: Replace memcpy by struct copy. This is equivalent and a bit easier to read. --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5