From: Jelte Jansen Date: Wed, 11 Jan 2006 12:50:05 +0000 (+0000) Subject: mo' lint, mo' problems X-Git-Tag: release-1.1.0~440 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=274e81f774ac9b083cb66fe00f2b2c4cf2ae49b5;p=thirdparty%2Fldns.git mo' lint, mo' problems --- diff --git a/examples/ldns-dpa.c b/examples/ldns-dpa.c index 53f4af89..f3bb09fe 100644 --- a/examples/ldns-dpa.c +++ b/examples/ldns-dpa.c @@ -357,7 +357,7 @@ print_match_operation(FILE *output, match_operation *mc) } break; case TYPE_TIMESTAMP: - time.tv_sec = (time_t) atol(mc->value); + time.tv_sec = (long int) atol(mc->value); tmp = ctime((time_t*)&time); tmp2 = malloc(strlen(tmp) + 1); for (pos = 0; pos < strlen(tmp); pos++) { @@ -2145,7 +2145,7 @@ printf("timeval: %u ; %u\n", cur_hdr.ts.tv_sec, cur_hdr.ts.tv_usec); } ip_hdr_size = (int) iptr->ip_hl * 4; - protocol = iptr->ip_p; + protocol = (u_int8_t) iptr->ip_p; data_offset += ip_hdr_size;