From 3ac6b9764e79db0304b20cb31b88a1e00ffb779f Mon Sep 17 00:00:00 2001 From: Chad Loder Date: Thu, 14 Apr 2005 02:27:45 +0000 Subject: Do this correctly, and silence a sign comparison warning. --- usr.sbin/bind/bin/dig/dig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c index 73c14fb91ab..423eadbefd4 100644 --- a/usr.sbin/bind/bin/dig/dig.c +++ b/usr.sbin/bind/bin/dig/dig.c @@ -1390,7 +1390,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only, int n; n = snprintf(rcfile, sizeof(rcfile), "%s/.digrc", homedir); - if (n < sizeof(rcfile) && n != 0) + if ((size_t)n < sizeof(rcfile) && n != -1) batchfp = fopen(rcfile, "r"); } if (batchfp != NULL) { -- cgit v1.2.3