diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-14 02:27:45 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-14 02:27:45 +0000 |
commit | 3ac6b9764e79db0304b20cb31b88a1e00ffb779f (patch) | |
tree | a8d0b1edc89ad33cab9c8f0ab066a10af4ba112e /usr.sbin | |
parent | 569f08c3703e8e7ba3cc469010cf2974f1ebd706 (diff) |
Do this correctly, and silence a sign comparison warning.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bind/bin/dig/dig.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |