projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8776d15
)
add ares_getopt prototype
author
Yang Tse
<yangsita@gmail.com>
Thu, 12 Apr 2007 18:59:46 +0000
(18:59 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Thu, 12 Apr 2007 18:59:46 +0000
(18:59 +0000)
ares.h
patch
|
blob
|
history
ares_getopt.c
patch
|
blob
|
history
diff --git
a/ares.h
b/ares.h
index
83a1c8e
..
18d3a72
100644
(file)
--- a/
ares.h
+++ b/
ares.h
@@
-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
}
diff --git
a/ares_getopt.c
b/ares_getopt.c
index
738e707
..
a14b6da
100644
(file)
--- a/
ares_getopt.c
+++ b/
ares_getopt.c
@@
-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 --