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
c6a0b717
Commit
c6a0b717
authored
Sep 04, 2018
by
Andreas Schmidt
Browse files
Replace write() with send().
parent
df8c6443
Pipeline
#2969
passed with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/time-protocol.h
View file @
c6a0b717
...
...
@@ -130,7 +130,7 @@ static inline ssize_t _send(socket_t conn, const char *buf, size_t size)
printf
(
"Select failed: %d.
\n
"
,
errno
);
return
-
1
;
}
else
if
(
retval
>
0
)
{
n
=
send
(
conn
,
buf
,
size
-
written
,
0
);
n
=
write
(
conn
,
buf
,
size
-
written
);
if
(
n
<
0
)
{
_time
();
printf
(
"SEND FAILED: %ld, errno: %d, written: %ld / %lu
\n
"
,
n
,
errno
,
written
,
size
);
...
...
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