mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 06:16:10 -04:00
sample/dns-example: fix compiler warning (getopt() returns an int)
Signed-off-by: David Disseldorp <ddiss@suse.de> Closes: #449 (cherry picked from commit 55cadb2b03c95505f6adbb836f0e975772d80bce)
This commit is contained in:
parent
5c0132f315
commit
d3e1c440c9
@ -154,12 +154,12 @@ main(int c, char **v) {
|
|||||||
const char *ns;
|
const char *ns;
|
||||||
};
|
};
|
||||||
struct options o;
|
struct options o;
|
||||||
char opt;
|
int opt;
|
||||||
struct event_base *event_base = NULL;
|
struct event_base *event_base = NULL;
|
||||||
struct evdns_base *evdns_base = NULL;
|
struct evdns_base *evdns_base = NULL;
|
||||||
|
|
||||||
memset(&o, 0, sizeof(o));
|
memset(&o, 0, sizeof(o));
|
||||||
|
|
||||||
if (c < 2) {
|
if (c < 2) {
|
||||||
fprintf(stderr, "syntax: %s [-x] [-v] [-c resolv.conf] [-s ns] hostname\n", v[0]);
|
fprintf(stderr, "syntax: %s [-x] [-v] [-c resolv.conf] [-s ns] hostname\n", v[0]);
|
||||||
fprintf(stderr, "syntax: %s [-T]\n", v[0]);
|
fprintf(stderr, "syntax: %s [-T]\n", v[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user