Skip to content
Snippets Groups Projects
Commit 0b31dbdc authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed last warnings.

(And one really ugly bug :-)

refs #1579
parent d77d0a73
No related branches found
No related tags found
No related merge requests found
......@@ -1145,7 +1145,7 @@ int ck_shallow_copy(const ck_hash_table_t *from, ck_hash_table_t **to)
// copy the ck_hash_table_item_t within them.
ck_stash_item_t *si = from->stash;
ck_stash_item_t **pos = &(*to)->stash;
dbg_ck_verb(stderr, "Copying hash table stash.\n");
dbg_ck_verb("Copying hash table stash.\n");
while (si != NULL) {
ck_stash_item_t *si_new = (ck_stash_item_t *)
malloc(sizeof(ck_stash_item_t));
......@@ -1310,7 +1310,7 @@ int ck_deep_copy(ck_hash_table_t *from, ck_hash_table_t **to)
int ret = ck_copy_items(from->tables[t], (*to)->tables[t],
hashsize((*to)->table_size_exp));
if (ret != 0) {
dbg_ck("Failed!\n", t);
dbg_ck("Failed!\n");
// free all tables created until now
ck_deep_copy_cleanup(*to, t);
return ret;
......@@ -1321,7 +1321,7 @@ int ck_deep_copy(ck_hash_table_t *from, ck_hash_table_t **to)
// together with the hash table item stored in it
ck_stash_item_t *si = from->stash;
ck_stash_item_t **pos = &(*to)->stash;
dbg_ck_verb(stderr, "Copying hash table stash.\n");
dbg_ck_verb("Copying hash table stash.\n");
while (si != NULL) {
ck_stash_item_t *si_new = (ck_stash_item_t *)
malloc(sizeof(ck_stash_item_t));
......
......@@ -459,8 +459,7 @@ static int knot_rrset_rr_to_wire(const knot_rrset_t *rrset,
// save whole domain name
memcpy(*pos, knot_dname_name(dname),
knot_dname_size(dname));
dbg_rrset_detail(stderr,
"Uncompressed dname size: %d\n",
dbg_rrset_detail("Uncompressed dname size: %d\n",
knot_dname_size(dname));
*pos += knot_dname_size(dname);
rdlength += knot_dname_size(dname);
......
......@@ -540,11 +540,11 @@ int knot_tsig_sign(uint8_t *msg, size_t *msg_len,
tsig_rdata_set_time_signed(tmp_tsig, request_time_signed);
/* Store current time into Other data. */
uint8_t time_signed[3];
uint8_t time_signed[6];
time_t curr_time = time(NULL);
/*! \todo bleeding eyes. */
knot_wire_write_u48(time_signed, (uint64_t)curr_time);
uint64_t time64 = curr_time;
knot_wire_write_u48(time_signed, time64);
tsig_rdata_set_other_data(tmp_tsig, 6, time_signed);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment