Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/dns_msg.c

    r0aa70f4 rfeeac0d  
    510510        size = sizeof(dns_header_t);
    511511
    512         list_foreach(msg->question, link) {
    513                 dns_question_t *q = list_get_instance(link, dns_question_t, msg);
     512        list_foreach(msg->question, msg, dns_question_t, q) {
    514513                rc = dns_question_encode(q, NULL, 0, &q_size);
    515514                if (rc != EOK)
     
    526525        di = sizeof(dns_header_t);
    527526
    528         list_foreach(msg->question, link) {
    529                 dns_question_t *q = list_get_instance(link, dns_question_t, msg);
     527        list_foreach(msg->question, msg, dns_question_t, q) {
    530528                rc = dns_question_encode(q, data + di, size - di, &q_size);
    531529                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.