mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fix last compilings warings from this file.
svn path=/trunk/; revision=10896
This commit is contained in:
@@ -98,7 +98,7 @@ static void query_submit(adns_state ads, adns_query qu,
|
||||
qu->vb= *qumsg_vb;
|
||||
adns__vbuf_init(qumsg_vb);
|
||||
|
||||
qu->query_dgram= malloc(qu->vb.used);
|
||||
qu->query_dgram= malloc( (size_t) qu->vb.used);
|
||||
if (!qu->query_dgram) { adns__query_fail(qu,adns_s_nomemory); return; }
|
||||
|
||||
qu->id= id;
|
||||
@@ -194,7 +194,7 @@ static int save_owner(adns_query qu, const char *owner, int ol) {
|
||||
ans= qu->answer;
|
||||
assert(!ans->owner);
|
||||
|
||||
ans->owner= adns__alloc_preserved(qu,ol+1); if (!ans->owner) return 0;
|
||||
ans->owner= adns__alloc_preserved(qu, (size_t) ol+1); if (!ans->owner) return 0;
|
||||
|
||||
memcpy(ans->owner,owner, (size_t) ol);
|
||||
ans->owner[ol]= 0;
|
||||
@@ -287,7 +287,7 @@ int adns_submit_reverse_any(adns_state ads,
|
||||
|
||||
lreq= strlen(zone) + 4*4 + 1;
|
||||
if (lreq > sizeof(shortbuf)) {
|
||||
buf= malloc(strlen(zone) + 4*4 + 1);
|
||||
buf= malloc( strlen(zone) + 4*4 + 1 );
|
||||
if (!buf) return errno;
|
||||
buf_free= buf;
|
||||
} else {
|
||||
@@ -481,7 +481,7 @@ static void makefinal_query(adns_query qu) {
|
||||
adns__makefinal_str(qu,&ans->owner);
|
||||
|
||||
if (ans->nrrs) {
|
||||
adns__makefinal_block(qu, &ans->rrs.untyped, ans->nrrs*ans->rrsz);
|
||||
adns__makefinal_block(qu, &ans->rrs.untyped, (size_t) ans->nrrs*ans->rrsz);
|
||||
|
||||
for (rrn=0; rrn<ans->nrrs; rrn++)
|
||||
qu->typei->makefinal(qu, ans->rrs.bytes + rrn*ans->rrsz);
|
||||
@@ -557,7 +557,7 @@ void adns__makefinal_str(adns_query qu, char **strp) {
|
||||
before= *strp;
|
||||
if (!before) return;
|
||||
l= strlen(before)+1;
|
||||
after= adns__alloc_final(qu,l);
|
||||
after= adns__alloc_final(qu, (size_t) l);
|
||||
memcpy(after,before,(size_t) l);
|
||||
*strp= after;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user