diff options
author | 2005-04-14 02:27:44 +0000 | |
---|---|---|
committer | 2005-04-14 02:27:44 +0000 | |
commit | bc5db2618da40a3dd959b1474767f76b94be7b90 (patch) | |
tree | 4a9362b3d02af04b0ef83b02292c8696a89578b9 | |
parent | When synproxy sends packets to the destination host, make sure to copy (diff) | |
download | wireguard-openbsd-bc5db2618da40a3dd959b1474767f76b94be7b90.tar.xz wireguard-openbsd-bc5db2618da40a3dd959b1474767f76b94be7b90.zip |
Do this correctly, and silence a sign comparison warning.
-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) { |