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
b36376e1
Commit
b36376e1
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
add ares_getopt prototype
parent
8aae15b6
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
ares/ares.h
+1
-0
1 addition, 0 deletions
ares/ares.h
ares/ares_getopt.c
+4
-1
4 additions, 1 deletion
ares/ares_getopt.c
with
5 additions
and
1 deletion
ares/ares.h
+
1
−
0
View file @
b36376e1
...
...
@@ -218,6 +218,7 @@ int ares_parse_ns_reply(const unsigned char *abuf, int alen,
void
ares_free_string
(
void
*
str
);
void
ares_free_hostent
(
struct
hostent
*
host
);
const
char
*
ares_strerror
(
int
code
);
int
ares_getopt
(
int
nargc
,
char
*
const
nargv
[],
const
char
*
ostr
);
#ifdef __cplusplus
}
...
...
This diff is collapsed.
Click to expand it.
ares/ares_getopt.c
+
4
−
1
View file @
b36376e1
...
...
@@ -44,9 +44,12 @@
* #endif
*/
#include
"setup.h"
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
"ares.h"
/* declarations to provide consistent linkage */
extern
char
*
optarg
;
...
...
@@ -61,7 +64,7 @@ char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'
#define EMSG ""
#define EMSG
(char *)
""
/*
* ares_getopt --
...
...
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