apply the modified style

This commit is contained in:
Evan Hunt
2020-02-13 14:44:37 -08:00
parent 0255a97473
commit e851ed0bb5
669 changed files with 35995 additions and 42219 deletions

View File

@@ -48,15 +48,13 @@
#include <dst/dst.h>
static isc_mem_t * mctx;
static isc_mem_t *mctx;
static dns_fixedname_t fixedqname;
ISC_PLATFORM_NORETURN_PRE static void
usage(void) ISC_PLATFORM_NORETURN_POST;
ISC_PLATFORM_NORETURN_PRE static void usage(void) ISC_PLATFORM_NORETURN_POST;
static void
usage(void)
{
usage(void) {
fprintf(stderr, "sample-request [-t RRtype] server_address hostname\n");
exit(1);
@@ -64,13 +62,12 @@ usage(void)
static isc_result_t
make_querymessage(dns_message_t *message, const char *namestr,
dns_rdatatype_t rdtype)
{
dns_name_t * qname = NULL, *qname0;
dns_rdatatype_t rdtype) {
dns_name_t *qname = NULL, *qname0;
dns_rdataset_t *qrdataset = NULL;
isc_result_t result;
isc_buffer_t b;
unsigned int namelen;
isc_result_t result;
isc_buffer_t b;
unsigned int namelen;
REQUIRE(message != NULL);
REQUIRE(namestr != NULL);
@@ -120,8 +117,7 @@ cleanup:
}
static void
print_section(dns_message_t *message, int section, isc_buffer_t *buf)
{
print_section(dns_message_t *message, int section, isc_buffer_t *buf) {
isc_result_t result;
isc_region_t r;
@@ -141,17 +137,16 @@ fail:
}
int
main(int argc, char *argv[])
{
int ch, i, gaierror;
struct addrinfo hints, *res;
main(int argc, char *argv[]) {
int ch, i, gaierror;
struct addrinfo hints, *res;
isc_textregion_t tr;
dns_client_t * client = NULL;
isc_result_t result;
isc_sockaddr_t sa;
dns_message_t * qmessage, *rmessage;
dns_rdatatype_t type = dns_rdatatype_a;
isc_buffer_t * outputbuf;
dns_client_t *client = NULL;
isc_result_t result;
isc_sockaddr_t sa;
dns_message_t *qmessage, *rmessage;
dns_rdatatype_t type = dns_rdatatype_a;
isc_buffer_t *outputbuf;
while ((ch = isc_commandline_parse(argc, argv, "t:")) != -1) {
switch (ch) {