Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
7278f17e
Commit
7278f17e
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
killed trailing whitespace
parent
66c7427d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/server/tftpd.c
+11
-11
11 additions, 11 deletions
tests/server/tftpd.c
with
11 additions
and
11 deletions
tests/server/tftpd.c
+
11
−
11
View file @
7278f17e
...
...
@@ -369,7 +369,7 @@ static int synchnet(curl_socket_t f /* socket to flush */)
while
(
1
)
{
#if defined(HAVE_IOCTLSOCKET)
(
void
)
ioctlsocket
(
f
,
FIONREAD
,
&
i
);
#else
#else
(
void
)
ioctl
(
f
,
FIONREAD
,
&
i
);
#endif
if
(
i
)
{
...
...
@@ -753,7 +753,7 @@ static void sendtftp(struct testcase *test, struct formats *pf)
dp
->
th_opcode
=
htons
((
u_short
)
DATA
);
dp
->
th_block
=
htons
((
u_short
)
block
);
timeout
=
0
;
#ifdef HAVE_SIGSETJMP
#ifdef HAVE_SIGSETJMP
(
void
)
sigsetjmp
(
timeoutbuf
,
1
);
#endif
send_data:
...
...
@@ -763,13 +763,13 @@ static void sendtftp(struct testcase *test, struct formats *pf)
}
read_ahead
(
test
,
pf
->
f_convert
);
for
(
;
;
)
{
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
alarm
(
rexmtval
);
/* read the ack */
#endif
n
=
recv
(
peer
,
ackbuf
,
sizeof
(
ackbuf
),
0
);
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
alarm
(
0
);
#endif
#endif
if
(
n
<
0
)
{
logmsg
(
"read: fail
\n
"
);
return
;
...
...
@@ -834,11 +834,11 @@ send_ack:
}
write_behind
(
test
,
pf
->
f_convert
);
for
(
;
;
)
{
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
alarm
(
rexmtval
);
#endif
#endif
n
=
recv
(
peer
,
dp
,
PKTSIZE
,
0
);
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
alarm
(
0
);
#endif
if
(
n
<
0
)
{
/* really? */
...
...
@@ -877,11 +877,11 @@ send_ack:
#if defined(HAVE_ALARM) && defined(SIGALRM)
mysignal
(
SIGALRM
,
justquit
);
/* just quit on timeout */
alarm
(
rexmtval
);
#endif
#endif
n
=
recv
(
peer
,
buf
,
sizeof
(
buf
),
0
);
/* normally times out and quits */
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
alarm
(
0
);
#endif
#endif
if
(
n
>=
4
&&
/* if read some data */
dp
->
th_opcode
==
DATA
&&
/* and got a data block */
block
==
dp
->
th_block
)
{
/* then my last ack was lost */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment