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
59997eca
Commit
59997eca
authored
15 years ago
by
Gisle Vanem
Browse files
Options
Downloads
Patches
Plain Diff
Avoid warnings when HAVE_ALRM and SIGALRM are not defined.
parent
6e2f0833
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/server/tftpd.c
+9
-7
9 additions, 7 deletions
tests/server/tftpd.c
with
9 additions
and
7 deletions
tests/server/tftpd.c
+
9
−
7
View file @
59997eca
...
...
@@ -116,7 +116,6 @@ static struct tftphdr *w_init(void);
static
int
readit
(
struct
testcase
*
test
,
struct
tftphdr
**
dpp
,
int
convert
);
static
int
writeit
(
struct
testcase
*
test
,
struct
tftphdr
**
dpp
,
int
ct
,
int
convert
);
static
void
mysignal
(
int
,
void
(
*
func
)(
int
));
#define opcode_RRQ 1
#define opcode_WRQ 2
...
...
@@ -145,7 +144,6 @@ static void recvtftp(struct testcase *test, struct formats *pf);
static
int
validate_access
(
struct
testcase
*
test
,
const
char
*
,
int
);
static
curl_socket_t
peer
;
static
int
rexmtval
=
TIMEOUT
;
static
int
maxtimeout
=
5
*
TIMEOUT
;
static
char
buf
[
PKTSIZE
];
...
...
@@ -744,6 +742,9 @@ static int timeout;
static
sigjmp_buf
timeoutbuf
;
#endif
#if defined(HAVE_ALARM) && defined(SIGALRM)
static
int
rexmtval
=
TIMEOUT
;
static
void
timer
(
int
signum
)
{
(
void
)
signum
;
...
...
@@ -760,6 +761,12 @@ static void timer(int signum)
#endif
}
static
void
(
int
signum
)
{
(
void
)
signum
;
}
#endif
/* HAVE_ALARM && SIGALRM */
static
unsigned
short
sendblock
;
static
struct
tftphdr
*
sdp
;
static
struct
tftphdr
*
sap
;
/* ack packet */
...
...
@@ -830,11 +837,6 @@ static void sendtftp(struct testcase *test, struct formats *pf)
}
while
(
size
==
SEGSIZE
);
}
static
void
justtimeout
(
int
signum
)
{
(
void
)
signum
;
}
static
unsigned
short
recvblock
;
static
struct
tftphdr
*
rdp
;
...
...
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