From 42a5f9c8f535fb2a6d1cbfaa38533176e1f1667a Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 24 Jun 1999 17:55:41 +0000 Subject: [PATCH] lint from alpha build --- lib/dns/master.c | 4 ++-- lib/dns/masterdump.c | 8 +++++--- lib/dns/message.c | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/dns/master.c b/lib/dns/master.c index 6160d80a57..5406176997 100644 --- a/lib/dns/master.c +++ b/lib/dns/master.c @@ -15,7 +15,7 @@ * 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 @@ -360,7 +360,7 @@ dns_master_load(char *master_file, dns_name_t *top, dns_name_t *origin, finish_include = ISC_TRUE; } else if (strcasecmp(token.value.as_pointer, "$DATE") == 0) { - isc_uint64_t dump_time64; + isc_int64_t dump_time64; isc_stdtime_t dump_time, current_time; GETTOKEN(lex, 0, &token, ISC_FALSE); iresult = isc_stdtime_get(¤t_time); diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index c918afa8fb..48e34c9fd0 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -131,7 +131,7 @@ typedef struct dns_totext_ctx { * Because the TTL is always omitted, and the class is almost always * omitted, neither is allocated any columns. */ -dns_master_style_t +const dns_master_style_t dns_master_style_default = { DNS_STYLEFLAG_OMIT_OWNER | DNS_STYLEFLAG_OMIT_CLASS | @@ -168,7 +168,9 @@ char tabs[N_TABS] = "\t\t\t\t\t\t\t\t\t\t"; * current column. */ 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; unsigned char *p; 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) { isc_buffer_t buf; isc_region_t r; - int col = 0; + unsigned int col = 0; isc_buffer_init(&buf, ctx->linebreak_buf, sizeof(ctx->linebreak_buf), ISC_BUFFERTYPE_TEXT); diff --git a/lib/dns/message.c b/lib/dns/message.c index 7de516bca8..b0a9508721 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -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 * dereferenced, but it must still be non-NULL. */ - rdata->data = ""; + rdata->data = (unsigned char *)""; rdata->length = 0; rdata->class = rdclass; rdata->type = rdtype;