2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00
Commit Graph

4537 Commits

Author SHA1 Message Date
David Lawrence
df8c9ee481 Fixed these warnings:
"rdata.c", line 164: remark(1174): variable "octdigits" was declared but never
          referenced

This was true; octdigits was used in no lib/dns/**/* files.

"rdata.c", line 1485: remark(1506): implicit conversion from "unsigned long"
          to "int":  rounding, sign extension, or loss of accuracy may result
"rdata.c", line 1493: remark(1506): implicit conversion from "unsigned long"
          to "int":  rounding, sign extension, or loss of accuracy may result
"rdata.c", line 1501: remark(1506): implicit conversion from "unsigned long"
          to "int":  rounding, sign extension, or loss of accuracy may result

These three were all in atob_tobuffer, where the value of stroul was being
assigned to an isc_int32_t, which is typedef'd from int and possibly smaller
than long (definitely on the IRIX machine).  The variables in question were
changed from isc_int32_t to long.
2000-05-14 02:02:24 +00:00
David Lawrence
71f88e821c Fixed IRIX warnings:
"./rdata/any_255/tsig_250.c", line 74: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result
"./rdata/any_255/tsig_250.c", line 95: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result

The values in question were already being checked to be within the range of
a short, so where the warnings were occuring they were just cast to int.
2000-05-13 22:50:49 +00:00
David Lawrence
652c80435a Fixed IRIX warnings:
"./rdata/generic/tkey_249.c", line 89: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result
"./rdata/generic/tkey_249.c", line 98: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result

The values in question were already being checked to be within the range of
a short, so where the warnings were occuring they were just cast to int.
2000-05-13 22:46:07 +00:00
David Lawrence
e14969d293 Fixed IRIX warning:
"./rdata/generic/unspec_103.c", line 138: warning(1184): possible use of "="
          where "==" was intended
by changing to ==, which is clearly what was intended.
2000-05-13 22:39:03 +00:00
David Lawrence
17547ed8c9 Fixed IRIX warning:
"./rdata/generic/opt_41.c", line 73: remark(1552): variable "option" was set
          but never used
by removing option, because there was nothing to do with its value.
2000-05-13 22:33:29 +00:00
David Lawrence
7c7d67b5d8 Fixed IRIX warning:
"./rdata/in_1/a6_38.c", line 259: remark(1552): variable "octets" was set but
          never used
by using UNUSED() on this stack variable.  I didn't take it out altogether
because this function is not yet finished, but someone was starting to
do some work on it and I didn't want to undo that.
2000-05-13 22:07:57 +00:00
David Lawrence
873484b40d Fixed IRIX warning:
"./rdata/generic/nxt_30.c", line 66: warning(1042): operand types are
          incompatible ("char *" and "void *")
by casting to char *, as already being done with several other uses of
token.value.as_pointer.
2000-05-13 22:05:39 +00:00
David Lawrence
3d181bc9f1 needs string.h for memset() prototype. 2000-05-13 21:57:02 +00:00
David Lawrence
22520194de Fixed several instances of this IRIX warning:
"./rdata/generic/loc_29.c", line ??: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result
by making sure that the range was suitable for an int and casting to
int in each case.  (This appeared to be more desirable than changing
all of the variables in question to longs.)
2000-05-13 21:24:37 +00:00
David Lawrence
f1f3bb3aa0 Fixed IRIX warning:
"./rdata/generic/mx_15.c", line 202: warning(1184): possible use of "=" where
          "==" was intended
by changing to == since it was clear that test was desired, not assignment.
2000-05-13 20:52:13 +00:00
David Lawrence
44d74084ff Fixed IRIX warnings:
"./rdata/in_1/a_1.c", line 178: warning(1184): possible use of "=" where "=="
          was intended
"./rdata/in_1/a_1.c", line 179: warning(1184): possible use of "=" where "=="
          was intended

By chaning them to ==, because (a) we don't allow side-effects in REQUIRE()
and (b) it is clear from the rest of the code that it really was a test that
was desired and not an assignment.
2000-05-13 20:50:35 +00:00
David Lawrence
29aa703dd6 Fixed IRIX warnings:
"rbtdb.c", line 1579: remark(1552): parameter "now" was set but never used
"rbtdb.c", line 2888: remark(1552): parameter "version" was set but never used

by using UNUSED() rather than setting variables to unused values.
2000-05-13 20:42:59 +00:00
David Lawrence
421cb938fd *FIXED* IRIX warnings:
"nxt.c", line 42: remark(1552): variable "byte" was set but never used
"nxt.c", line 56: remark(1552): variable "byte" was set but never used
2000-05-13 20:39:17 +00:00
David Lawrence
d3d03f736d Silence IRIX warning:
"name.c", line 201: remark(1552): variable "byte" was set but never used
2000-05-13 20:34:55 +00:00
David Lawrence
0911d40d83 Silence IRIX warning:
"keytable.c", line 286: remark(1552): variable "knode" was set but never used
2000-05-13 20:23:17 +00:00
David Lawrence
56a2bee133 Silence IRIX warning:
"journal.c", line 169: remark(1552): variable "zoneclass" was set but never
          used

by removing zoneclass declaration and zoneclass = dns_db_class(db) from
dns_db_createsoatuple.
2000-05-13 20:21:45 +00:00
David Lawrence
c6715d2315 Silence IRIX warnings:
"adb.c", line 2042: remark(1552): variable "result" was set but never used
        isc_result_t result;
                     ^

"adb.c", line 3082: warning(1185): enumerated type mixed with another type
                               NAME_GLUEOK(adbname), NAME_HINTOK(adbname),
                                                     ^

"adb.c", line 3187: warning(1185): enumerated type mixed with another type
                               now, NAME_GLUEOK(adbname), NAME_HINTOK(adbname),

Note that the first is in timer_cleanup, a function returning void in a context
that can't do anything with something other than void (as an isc_taskaction_t).
It calls isc_timer_reset, which could conceivably return ISC_R_NOMEMORY or
ISC_R_UNEXPECTED.  For now the call has been cast to void, but someone
who knows the code better should have a look and see whether something more
intelligent could be done with an error (and, if not, remove my XXX and
make sure the comment is clear as to why ignoring the return is the
best that can be done).
2000-05-13 20:15:16 +00:00
David Lawrence
605c03155a Silence IRIX warning:
"confzone.c", line 445: remark(1552): variable "res" was set but never used

Made *_zone_init functions return void since they all always returned
ISC_R_SUCCESS.
2000-05-13 19:46:26 +00:00
David Lawrence
34e52a882a Silence IRIX warning:
"confndc.c", line 1149: remark(1552): variable "mem" was set but never used
2000-05-13 19:45:13 +00:00
David Lawrence
aef7d54ae7 Silence IRIX warning:
"confctl.c", line 177: remark(1552): variable "rval" was set but never used
2000-05-13 19:44:53 +00:00
David Lawrence
48a7c6ab28 Silence IRIX warning:
"hmac_link.c", line 92: remark(1692): prototyped function redeclared without
          prototype
  dst_s_hmacmd5_init() {
2000-05-13 19:31:35 +00:00
David Lawrence
8e63fe6323 Silence IRIX warning:
"dst_parse.c", line 201: remark(1552): variable "error" was set but never used
2000-05-13 19:30:19 +00:00
David Lawrence
29ee206b9a Shut up IRIX warnings, including:
"bsafe_link.c", line 116: remark(1692): prototyped function redeclared without
          prototype
  dst_s_bsafersa_init() {

and several variations of:

"bsafe_link.c", line 155: remark(1552): variable "status" was set but never
          used
        int status = 0;

along with style lint (notably bitwise operands used as truth values:
mode & DST_SIGMODE_INIT   versus  (mode & DST_SIGMODE_INIT) != 0.
2000-05-13 19:28:15 +00:00
David Lawrence
7c9a9096f6 turn off warning 1209 on irix, which bitches about every "do while (0)" we have 2000-05-13 18:40:00 +00:00
David Lawrence
e52750239e Changed the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6*
to better clarify what is going on with regard to the symbol.
2000-05-13 18:18:08 +00:00
David Lawrence
0adde9f4f9 Moved <netinet6/in6.h> special processing to IPv6 section. Changed
the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6* to better
clarify what's going on with regard to the symbol.

Moved processing of --with-kame to before the in6addr_any check, since
it needs to set LIBS for the check to work.  [related to RT #105, and
previous configure.in revision 1.108.]

in6_pkinfo check only needs AC_TRY_COMPILE, not AC_TRY_LINK.
2000-05-13 18:15:11 +00:00
Andreas Gustafsson
7c74a7745d comments for dns_zone_setmasters() and dns_zone_setnotify()
said they add to a list; this is no longer true, they now set the whole list
2000-05-13 17:54:37 +00:00
Andreas Gustafsson
e1f16346db validator must not indicate a validation failure by returning
ISC_R_NOTFOUND as that seriously confuses query_find().  Introduced new
result codes DNS_R_NOVALIDSIG and DNS_R_NOVALIDNXT to use instead.
2000-05-12 21:25:17 +00:00
Andreas Gustafsson
9bd874cb27 keysigner identified itself as keysettool in usage message 2000-05-12 21:09:53 +00:00
Andreas Gustafsson
259d8f9420 style 2000-05-12 21:06:58 +00:00
Andreas Gustafsson
bd36d3014e NetBSD now always uses the mit-pthreads/unproven-pthreads
library if it is available; therefore the --with-mit-pthreads
option is no longer needed.  The --with-ptl2 option is now documented
as being experimental and applying to NetBSD only.
2000-05-12 20:22:56 +00:00
Andreas Gustafsson
e21262ae8a reworded --with-kame explanation 2000-05-12 19:42:25 +00:00
Andreas Gustafsson
69930116e3 clarified documentation on configure options; removed
the mention of --with-mit-pthreads as this option no longer exists, and of
--with-ptl2 as this option is for experimental use only
2000-05-12 19:34:20 +00:00
Andreas Gustafsson
1706598239 NetBSD now always uses the mit-pthreads/unproven-pthreads
library if it is available; therefore the --with-mit-pthreads
option is no longer needed.  The --with-ptl2 option is now documented
as being experimental and applying to NetBSD only.
2000-05-12 19:23:14 +00:00
Michael Graff
aec0bd3d68 add -D_THREAD_SAFE for AIX 2000-05-12 18:58:13 +00:00
Michael Graff
a5cf3cf61e indent libtool options, and document them a _bit_ better on the --with-libtool line. 2000-05-12 18:52:11 +00:00
Michael Sawyer
9fe3676b84 Clean up command line parsing in dig.
Fix bug in nslookup interactive mode.
2000-05-12 18:45:38 +00:00
David Lawrence
9e87fd676e [RT #105] note availability of --with-kame, --with-mit-pthreads & --with-ptl2.
also briefly point to the tests programs built with make all_tests in bin/tests.
2000-05-12 18:12:47 +00:00
Andreas Gustafsson
78951552dc removed support for trusted keys other than security
roots; check that key name is appropriate even if it is a security
root; added/clarified log messages
2000-05-12 17:41:30 +00:00
Mark Andrews
c661868379 Add missing range checks in fromtext(). 2000-05-12 12:59:35 +00:00
Mark Andrews
902acbaefc notify checkpoint 2000-05-12 10:21:06 +00:00
Michael Sawyer
6fe03d6c83 Code cleanup of dighost.c, hopefully making some of the flow of
command a bit more obvious.
Addition of TCP fallback on UDP failure.  Will add option to disable this.
Further work on nslookup.
(nslookup is not built by default now, and is far from fully functional.
Interactive mode currently segfaults.)
2000-05-12 01:02:37 +00:00
Andreas Gustafsson
3ce4b8b03e added a comment 2000-05-11 22:58:17 +00:00
Andreas Gustafsson
c94f485c4b use the UNUSED() macro 2000-05-11 22:48:12 +00:00
Andreas Gustafsson
fd9f6afdff use the UNUSED() macro 2000-05-11 22:47:00 +00:00
Andreas Gustafsson
949162ca40 in [84], after allowing access to a zone based on the view
allow-query ACL, subsequent accesses to the same zone were denied because
dbversion->queryok was not being set.  This caused mandatory glue to be
omitted from referral responses, ultimately causing lookups to fail if all
authoritative servers for the parent zone were running bind9.
2000-05-11 20:10:34 +00:00
Andreas Gustafsson
e998a97650 documented log message conventions 2000-05-11 18:28:04 +00:00
Michael Graff
3ee8ba5e32 expand on why magic numbers need to be first in the structure 2000-05-11 16:18:01 +00:00
David Lawrence
9dff010bd0 new isc_stdio_ names replaced in item #164 2000-05-11 16:15:36 +00:00
David Lawrence
d8e34837cd isc_file_{stdiofunc} -> isc_stdio_* 2000-05-11 16:14:05 +00:00