summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcloder <cloder@openbsd.org>2005-04-14 02:27:44 +0000
committercloder <cloder@openbsd.org>2005-04-14 02:27:44 +0000
commitbc5db2618da40a3dd959b1474767f76b94be7b90 (patch)
tree4a9362b3d02af04b0ef83b02292c8696a89578b9
parentWhen synproxy sends packets to the destination host, make sure to copy (diff)
downloadwireguard-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.c2
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) {