Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
863728b7
Commit
863728b7
authored
Sep 04, 2018
by
Andreas Schmidt
Browse files
Only write missing parts.
parent
682d4685
Pipeline
#2965
passed with stages
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/time-protocol.h
View file @
863728b7
...
...
@@ -113,7 +113,7 @@ static inline ssize_t _send(socket_t conn, const char *buf, size_t size)
int
written
=
0
;
ssize_t
n
=
0
;
while
(
written
<
size
)
{
n
=
write
(
conn
,
buf
,
size
);
n
=
write
(
conn
,
buf
,
size
-
written
);
if
(
n
<
0
)
{
_time
();
printf
(
"WRITE FAILED: %ld, errno: %d
\n
"
,
n
,
errno
);
...
...
Write
Preview
Supports
Markdown
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