From 55cadb2b03c95505f6adbb836f0e975772d80bce Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 20 Feb 2017 16:55:57 +0100 Subject: [PATCH] sample/dns-example: fix compiler warning (getopt() returns an int) Signed-off-by: David Disseldorp Closes: #449 --- sample/dns-example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/dns-example.c b/sample/dns-example.c index fb705664..e180edfe 100644 --- a/sample/dns-example.c +++ b/sample/dns-example.c @@ -154,12 +154,12 @@ main(int c, char **v) { const char *ns; }; struct options o; - char opt; + int 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]); -- 2.40.0