Commit Graph
146 Commits
Author SHA1 Message Date
David Lawrence 03a0fca86d define and use LWRES_SOCKADDR_LEN_T for recvfrom() and stop compiler warnings
by casting the sixth parameter of recvfrom() to void *, as with
lib/isc/unix/socket.c.
2000-05-24 05:22:36 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence 5e09ded492 cast assignment of confdata->ndots to lwres_uint8_t (its type). it was already
being range checked.
2000-05-24 03:02:16 +00:00
David Lawrence e6ce1a0ea9 use _PLATFORM_NEEDINETIN6H 2000-05-18 22:43:48 +00:00
David Lawrence 6c6ad82aca line 454: remark(1552): variable "delim" was set but never used.
It was removed and the function call that set it (getword) was cast to void.
In the context in which it was being used, the return value was not needed.
2000-05-14 03:53:53 +00:00
David Lawrence 221aacd5ff iline 57: remark(1692): prototyped function redeclared without prototype
line 84: remark(1692): prototyped function redeclared without prototype
line 137: remark(1692): prototyped function redeclared without prototype

The missing prototypes were added.
2000-05-14 03:52:36 +00:00
David Lawrence 3e3a8b051d "lwconfig.c", line 438: remark(1506): implicit conversion from "long" to
"unsigned char":  rounding, sign extension, or loss of accuracy may
          result

Fixed by ensuring suitable range before assignment.
2000-05-14 03:34:33 +00:00
David Lawrence 80056496f0 line 307: remark(1692): prototyped function redeclared without prototype.
Fixed.
2000-05-14 03:26:31 +00:00
David Lawrence 74cf566d92 "context.c", line 195: remark(1506): implicit conversion from "unsigned int"
to "long":  rounding, sign extension, or loss of accuracy may result

Fixed by ensuring unsigned long ctx->timeout does not overflow the signed
long timeout.tv_sec.
2000-05-14 03:20:17 +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 f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +00:00
David Lawrence 47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
David Lawrence d03ee55286 don't try to build getnet.o, since getnet.c no longer exists 2000-05-09 15:01:15 +00:00
Mark Andrews 17d0495c33 160. [cleanup] getnet*() are not going to be implemented at this
stage.
2000-05-09 02:21:58 +00:00
David Lawrence 8764af86f7 /*
* Compilers that use an older prototype for recvfrom() will
	 * warn about the type of the sixth parameter, fromlen.  It
	 * is now standardized as unsigned, specifically as socklen_t.
	 */

(... but the code itself still uses unsigned int.  This comment was added
because HP/UX is complaining now even as other compilers stopped complaining
when it was changed from signed int to unsigned int.)
2000-05-08 19:53:50 +00:00
David Lawrence 6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence 28beeb7067 fromlen changed from int to unsigned int 2000-05-08 17:57:01 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Andreas Gustafsson 6ba0a8a5e7 eliminated compiler warnings on alpha 2000-05-03 18:25:52 +00:00
James Brister edcd66a7dd Fixed typo. 2000-05-02 19:43:34 +00:00
Michael Graff 58ff88cca7 use 'flags' rather than 'attributes' and rename pkt->flags to pkt->pktflags 2000-05-02 18:46:44 +00:00
Michael Graff 46fb173b20 add 'attributes' flags to lwres packets 2000-05-02 18:18:45 +00:00
David Lawrence 6b7257f756 include config.h 2000-04-28 02:08:20 +00:00
Michael Graff 98e8a46972 comments from code review 2000-04-26 21:54:50 +00:00
Michael Graff a02ad3bc33 bump to more aliases and more addresses 2000-04-25 22:46:09 +00:00
Michael Graff e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley dda4bfe649 update copyrights 2000-03-23 19:52:19 +00:00
Michael Graff 915723e400 Copy addresses out, rather than keeping pointers to them from a buffer. This
simplifies code at the expense of copying more.  It is, however, the
easiest way to get sortlist working correctly.  ipv6 addresses now sort
as well.
2000-03-12 01:58:41 +00:00
Michael Graff d736db6dc5 lwres get-addr-by-name returns a linked list, not an array, of names. This
was needed to make adding the sortlist code, which will be checked in
in a few minutes.
2000-03-10 23:11:36 +00:00
Michael Graff a193a7a1f0 s/int/lwres_result_t/ 2000-02-24 00:12:40 +00:00
Andreas Gustafsson 193738b819 introduced @SA@ macro for use as the filename extension
of static library archive files in Makefile rules
2000-02-23 23:02:28 +00:00
Andreas Gustafsson a0cbd01f76 inappropriate use of @A@ caused definition of
two conflicting rules for building liblwres.la when using
libtool (RT #62)
2000-02-23 18:13:16 +00:00
Andreas Gustafsson aaaa5b4a62 added missing API version definition file 2000-02-23 18:06:17 +00:00
Michael Graff b81306ccd1 more lwres_result_t changes 2000-02-23 02:38:55 +00:00
Michael Graff 01933e9302 start changing from 'int' returns to 'lwres_result_t' 2000-02-23 01:46:34 +00:00
Michael Graff 8a3d2a5738 add compiled file for versioning 2000-02-23 01:40:23 +00:00
Michael Graff 36bc67f257 more formatting nits 2000-02-18 03:52:34 +00:00
Michael Graff 9ca3879f71 formatting nits, and make 'search' work. 2000-02-18 01:09:36 +00:00
Bob Halley f9c8626738 lint 2000-02-16 18:51:08 +00:00
James Brister 32ddc0e486 Include new lwconfig.c in the build. 2000-02-16 17:42:49 +00:00
James Brister 4838e5f7c2 various declarations for resolv.conf parser. 2000-02-16 17:42:16 +00:00
James Brister ffbec84459 resolv.conf parsing routines. 2000-02-16 17:38:28 +00:00
Bob Halley a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Bob Halley 0dc24b49b8 ensure we have size_t defined. 2000-02-07 22:35:31 +00:00
Bob Halley 7eab320180 include <stddef.h> so we have NULL. Ugh. 2000-02-04 06:50:06 +00:00
Bob Halley 5b64759e40 deal with strsep portability. grr. 2000-02-04 06:17:22 +00:00
Bob Halley 35c842e05d deal with lwres portability issues 2000-02-04 06:04:16 +00:00
Bob Halley 2ba9ea4e1e add lwinetaton.c lwinetpton.c lwinetntop.c 2000-02-04 06:02:51 +00:00
Bob Halley b25b18a41e add 2000-02-04 06:02:06 +00:00
Andreas Gustafsson b008da894e suppress compiler warnings about redefining macros on OSF/1 2000-02-04 01:20:56 +00:00