mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Update dns-example.
There's somebody out there who is going to have a compiler from 1986 who will complain. Better to fix c99 now.
This commit is contained in:
parent
bde231d725
commit
620ff243c6
@ -152,11 +152,14 @@ main(int c, char **v) {
|
||||
int servertest;
|
||||
const char *resolv_conf;
|
||||
const char *ns;
|
||||
} o = { };
|
||||
};
|
||||
struct options o;
|
||||
char opt;
|
||||
struct event_base *event_base = NULL;
|
||||
struct evdns_base *evdns_base = NULL;
|
||||
|
||||
memset(&o, 0, sizeof(o));
|
||||
|
||||
if (c < 2) {
|
||||
fprintf(stderr, "syntax: %s [-x] [-v] [-c resolv.conf] [-s ns] hostname\n", v[0]);
|
||||
fprintf(stderr, "syntax: %s [-T]\n", v[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user