]> git.tue.mpg.de Git - paraslash.git/commitdiff
com_sender: Replace memcpy by struct copy.
authorAndre Noll <maan@systemlinux.org>
Sun, 13 Apr 2014 23:02:56 +0000 (23:02 +0000)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Aug 2014 06:47:51 +0000 (08:47 +0200)
This is equivalent and a bit easier to read.

command.c

index eb15875c36b8affba5a3defdce8f787ad73026ba..fcf0803560e214394b77e7e8945f721a799b4537 100644 (file)
--- 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;
        }