projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
197a489
)
com_sender: Replace memcpy by struct copy.
author
Andre Noll
<maan@systemlinux.org>
Sun, 13 Apr 2014 23:02:56 +0000
(23:02 +0000)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/command.c
b/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;
}
- m
emcpy(&mmd->sender_cmd_data, &scd, sizeof(scd))
;
+ m
md->sender_cmd_data = scd
;
mutex_unlock(mmd_mutex);
break;
}