Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
7690b4b7
Commit
7690b4b7
authored
Nov 18, 2015
by
Willem Thiart
Browse files
Refactor
parent
72e8f248
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/mock_send_functions.c
View file @
7690b4b7
...
@@ -52,8 +52,7 @@ static int __append_msg(
...
@@ -52,8 +52,7 @@ static int __append_msg(
raft_server_t
*
raft
raft_server_t
*
raft
)
)
{
{
msg_t
*
m
;
msg_t
*
m
=
malloc
(
sizeof
(
msg_t
));
m
=
malloc
(
sizeof
(
msg_t
));
m
->
type
=
type
;
m
->
type
=
type
;
m
->
len
=
len
;
m
->
len
=
len
;
m
->
data
=
malloc
(
len
);
m
->
data
=
malloc
(
len
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment