Commit 244d11a2 authored by Tinderbox User's avatar Tinderbox User
Browse files

update copyright notice / whitespace

parent 4a84f889
......@@ -13,6 +13,7 @@
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Portions of this code were adapted from dnstap-ldns:
*
......@@ -60,7 +61,7 @@ const char *program = "dnstap-read";
do { result = (op); \
if (result != ISC_R_SUCCESS) { \
fprintf(stderr, \
"%s: %s: %s\n", program, msg, \
"%s: %s: %s\n", program, msg, \
isc_result_totext(result)); \
goto cleanup; \
} \
......
......@@ -819,7 +819,7 @@ dns_dt_parse(isc_mem_t *mctx, isc_region_t *src, dns_dtdata_t **destp) {
}
/* Query? */
if ((d->type & DNS_DTTYPE_QUERY) != 0)
if ((d->type & DNS_DTTYPE_QUERY) != 0)
d->query = ISC_TRUE;
else
d->query = ISC_FALSE;
......@@ -871,10 +871,10 @@ dns_dt_parse(isc_mem_t *mctx, isc_region_t *src, dns_dtdata_t **destp) {
protobuf_c_enum_descriptor_get_value(
&dnstap__socket_protocol__descriptor,
m->socket_protocol);
if (type != NULL &&
if (type != NULL &&
type->value == DNSTAP__SOCKET_PROTOCOL__TCP)
d->tcp = ISC_TRUE;
else
else
d->tcp = ISC_FALSE;
}
......@@ -1019,7 +1019,7 @@ dns_dt_datatotext(dns_dtdata_t *d, isc_buffer_t **dest) {
if (d->typebuf[0] == '\0')
CHECK(putstr(dest, "?"));
else
else
CHECK(putstr(dest, d->typebuf));
CHECK(isc_buffer_reserve(dest, 1));
......
......@@ -141,7 +141,7 @@ dns_dt_create(isc_mem_t *mctx, dns_dtmode_t mode, const char *path,
*
* Notes:
*
*\li 'path' refers to a UNIX domain socket by default. It may
*\li 'path' refers to a UNIX domain socket by default. It may
* optionally be prepended with "socket:" or "file:". If prepended
* with "file:", then dnstap logs are sent to a file instead of a
* socket.
......@@ -235,7 +235,7 @@ dns_dt_send(dns_view_t *view, dns_dtmsgtype_t msgtype,
*
* Requires:
*
*\li 'view' is a valid view, and 'view->dtenv' is NULL or is a
*\li 'view' is a valid view, and 'view->dtenv' is NULL or is a
* valid dnstap environment.
*/
......@@ -261,7 +261,7 @@ dns_dt_datatotext(dns_dtdata_t *d, isc_buffer_t **dest);
/*%<
* Converts a parsed dnstap data structure 'd' to text, storing
* the result in the buffer 'dest'. If 'dest' points to a dynamically
* allocated buffer, then it may be reallocated as needed.
* allocated buffer, then it may be reallocated as needed.
*
* (XXX: add a 'long_form' option to generate a detailed listing of
* dnstap data instead * of a one-line summary.)
......@@ -324,7 +324,7 @@ dns_dt_getframe(dns_dthandle_t *handle, isc_uint8_t **bufp, size_t *sizep);
*\li 'bufp' is not NULL
*\li 'sizep' is not NULL
*
* Ensures:
* Ensures:
* \li if returning ISC_R_SUCCESS then '*bufp' is not NULL
*
* Returns:
......
/*
* Copyright (C) 2004-2008, 2011, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2008, 2011, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
......
/*
* Copyright (C) 2011, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2011, 2012, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
......
/*
* Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004-2007, 2009-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment