Loading ares/ares.h +1 −0 Original line number Diff line number Diff line Loading @@ -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 } Loading ares/ares_getopt.c +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -61,7 +64,7 @@ char *optarg; /* argument associated with option */ #define BADCH (int)'?' #define BADARG (int)':' #define EMSG "" #define EMSG (char *)"" /* * ares_getopt -- Loading Loading
ares/ares.h +1 −0 Original line number Diff line number Diff line Loading @@ -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 } Loading
ares/ares_getopt.c +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -61,7 +64,7 @@ char *optarg; /* argument associated with option */ #define BADCH (int)'?' #define BADARG (int)':' #define EMSG "" #define EMSG (char *)"" /* * ares_getopt -- Loading