mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
lint from alpha build
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: master.c,v 1.19 1999/06/09 11:56:00 gson Exp $ */
|
/* $Id: master.c,v 1.20 1999/06/24 17:55:38 halley Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -360,7 +360,7 @@ dns_master_load(char *master_file, dns_name_t *top, dns_name_t *origin,
|
|||||||
finish_include = ISC_TRUE;
|
finish_include = ISC_TRUE;
|
||||||
} else if (strcasecmp(token.value.as_pointer,
|
} else if (strcasecmp(token.value.as_pointer,
|
||||||
"$DATE") == 0) {
|
"$DATE") == 0) {
|
||||||
isc_uint64_t dump_time64;
|
isc_int64_t dump_time64;
|
||||||
isc_stdtime_t dump_time, current_time;
|
isc_stdtime_t dump_time, current_time;
|
||||||
GETTOKEN(lex, 0, &token, ISC_FALSE);
|
GETTOKEN(lex, 0, &token, ISC_FALSE);
|
||||||
iresult = isc_stdtime_get(¤t_time);
|
iresult = isc_stdtime_get(¤t_time);
|
||||||
|
@@ -131,7 +131,7 @@ typedef struct dns_totext_ctx {
|
|||||||
* Because the TTL is always omitted, and the class is almost always
|
* Because the TTL is always omitted, and the class is almost always
|
||||||
* omitted, neither is allocated any columns.
|
* omitted, neither is allocated any columns.
|
||||||
*/
|
*/
|
||||||
dns_master_style_t
|
const dns_master_style_t
|
||||||
dns_master_style_default = {
|
dns_master_style_default = {
|
||||||
DNS_STYLEFLAG_OMIT_OWNER |
|
DNS_STYLEFLAG_OMIT_OWNER |
|
||||||
DNS_STYLEFLAG_OMIT_CLASS |
|
DNS_STYLEFLAG_OMIT_CLASS |
|
||||||
@@ -168,7 +168,9 @@ char tabs[N_TABS] = "\t\t\t\t\t\t\t\t\t\t";
|
|||||||
* current column.
|
* current column.
|
||||||
*/
|
*/
|
||||||
static dns_result_t
|
static dns_result_t
|
||||||
indent(int *current, int to, int tabwidth, isc_buffer_t *target) {
|
indent(unsigned int *current, unsigned int to, int tabwidth,
|
||||||
|
isc_buffer_t *target)
|
||||||
|
{
|
||||||
isc_region_t r;
|
isc_region_t r;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
int from, ntabs, nspaces, t;
|
int from, ntabs, nspaces, t;
|
||||||
@@ -237,7 +239,7 @@ totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx)
|
|||||||
if ((ctx->style.flags & DNS_STYLEFLAG_MULTILINE) != 0) {
|
if ((ctx->style.flags & DNS_STYLEFLAG_MULTILINE) != 0) {
|
||||||
isc_buffer_t buf;
|
isc_buffer_t buf;
|
||||||
isc_region_t r;
|
isc_region_t r;
|
||||||
int col = 0;
|
unsigned int col = 0;
|
||||||
|
|
||||||
isc_buffer_init(&buf, ctx->linebreak_buf, sizeof(ctx->linebreak_buf),
|
isc_buffer_init(&buf, ctx->linebreak_buf, sizeof(ctx->linebreak_buf),
|
||||||
ISC_BUFFERTYPE_TEXT);
|
ISC_BUFFERTYPE_TEXT);
|
||||||
|
@@ -700,7 +700,7 @@ getrdata(dns_name_t *name, isc_buffer_t *source, dns_message_t *msg,
|
|||||||
* When the rdata is empty, the data pointer is never
|
* When the rdata is empty, the data pointer is never
|
||||||
* dereferenced, but it must still be non-NULL.
|
* dereferenced, but it must still be non-NULL.
|
||||||
*/
|
*/
|
||||||
rdata->data = "";
|
rdata->data = (unsigned char *)"";
|
||||||
rdata->length = 0;
|
rdata->length = 0;
|
||||||
rdata->class = rdclass;
|
rdata->class = rdclass;
|
||||||
rdata->type = rdtype;
|
rdata->type = rdtype;
|
||||||
|
Reference in New Issue
Block a user