Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
1502c8db
Commit
1502c8db
authored
Jan 06, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Use right type when taking to stdio f*() C APIs
parent
5c3a9056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test-pseudotcp.c
tests/test-pseudotcp.c
+4
-4
No files found.
tests/test-pseudotcp.c
View file @
1502c8db
...
...
@@ -60,8 +60,8 @@ static void adjust_clock (PseudoTcpSocket *sock);
static
void
write_to_sock
(
PseudoTcpSocket
*
sock
)
{
gchar
buf
[
1024
];
g
uint
len
;
g
u
int
wlen
;
g
size
len
;
gint
wlen
;
guint
total
=
0
;
while
(
TRUE
)
{
...
...
@@ -72,10 +72,10 @@ static void write_to_sock (PseudoTcpSocket *sock)
break
;
}
else
{
wlen
=
pseudo_tcp_socket_send
(
sock
,
buf
,
len
);
g_debug
(
"Sending %
d
bytes : %d"
,
len
,
wlen
);
g_debug
(
"Sending %
"
G_GSIZE_FORMAT
"
bytes : %d"
,
len
,
wlen
);
total
+=
wlen
;
total_read
+=
wlen
;
if
(
wlen
<
len
)
{
if
(
wlen
<
(
gint
)
len
)
{
fseek
(
in
,
wlen
-
len
,
SEEK_CUR
);
g_debug
(
"Socket queue full after %d bytes written"
,
total
);
break
;
...
...
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