Commit 42a5f9c8 authored by Bob Halley's avatar Bob Halley
Browse files

lint from alpha build

parent e4032486
......@@ -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 <config.h>
......@@ -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(&current_time);
......
......@@ -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);
......
......@@ -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;
......
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