diff options
Diffstat (limited to 'sample/dns-example.c')
-rw-r--r-- | sample/dns-example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/dns-example.c b/sample/dns-example.c index 21a75de..2d07c38 100644 --- a/sample/dns-example.c +++ b/sample/dns-example.c @@ -225,8 +225,8 @@ main(int c, char **v) { res = evdns_base_resolv_conf_parse(evdns_base, DNS_OPTION_NAMESERVERS, o.resolv_conf); - if (res < 0) { - fprintf(stderr, "Couldn't configure nameservers"); + if (res) { + fprintf(stderr, "Couldn't configure nameservers\n"); return 1; } } |