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
236337ce
Commit
236337ce
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
fix protos to prevent warnings
parent
224ccc78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/server/getpart.c
+26
-1
26 additions, 1 deletion
tests/server/getpart.c
tests/server/sws.c
+4
-4
4 additions, 4 deletions
tests/server/sws.c
with
30 additions
and
5 deletions
tests/server/getpart.c
+
26
−
1
View file @
236337ce
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
* $Id$
***************************************************************************/
#include
<stdio.h>
#include
<ctype.h>
#include
<string.h>
#include
<stdlib.h>
#include
"getpart.h"
#define EAT_SPACE(ptr) while( ptr && *ptr && isspace((int)*ptr) ) ptr++
#define EAT_WORD(ptr) while( ptr && *ptr && !isspace((int)*ptr) && ('>' != *ptr)) ptr++
...
...
@@ -39,7 +62,9 @@ char *appendstring(char *string, /* original string */
return
string
;
}
char
*
spitout
(
FILE
*
stream
,
char
*
main
,
char
*
sub
,
int
*
size
)
const
char
*
spitout
(
FILE
*
stream
,
const
char
*
main
,
const
char
*
sub
,
int
*
size
)
{
char
buffer
[
8192
];
/* big enough for anything */
char
cmain
[
128
]
=
""
;
/* current main section */
...
...
This diff is collapsed.
Click to expand it.
tests/server/sws.c
+
4
−
4
View file @
236337ce
...
...
@@ -47,6 +47,8 @@
#endif
#include
<netdb.h>
#include
"getpart.h"
#ifndef FALSE
#define FALSE 0
#endif
...
...
@@ -54,10 +56,8 @@
#define TRUE 1
#endif
const
char
*
spitout
(
FILE
*
stream
,
const
char
*
main
,
const
char
*
sub
,
int
*
size
);
int
ProcessRequest
(
char
*
request
);
void
storerequest
(
char
*
reqbuf
);
#define DEFAULT_PORT 8999
...
...
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