Use perror in both cases, fix copy & paste mistake, don't use extra ":".
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
DBG(1, "Q <- %s %s\n", dns_type_string(type), question);
if (interface_send_packet(iface, NULL, iov, ARRAY_SIZE(iov)) < 0)
- perror("failed to send question :");
+ perror("failed to send question");
}
}
if (interface_send_packet(iface, to, iov, n_iov) < 0)
- fprintf(stderr, "failed to send question\n");
+ perror("failed to send answer");
}
void