projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clang-format a few files to make CI happy
[collectd.git]
/
src
/
utils
/
dns
/
dns.c
diff --git
a/src/utils/dns/dns.c
b/src/utils/dns/dns.c
index
fb5cb4f
..
981828d
100644
(file)
--- a/
src/utils/dns/dns.c
+++ b/
src/utils/dns/dns.c
@@
-466,7
+466,7
@@
static int handle_ipv6(struct ip6_hdr *ipv6, int len) {
return 1; /* Success */
} /* int handle_ipv6 */
return 1; /* Success */
} /* int handle_ipv6 */
-/* #endif HAVE_IPV6 */
+
/* #endif HAVE_IPV6 */
#else /* if !HAVE_IPV6 */
static int handle_ipv6(__attribute__((unused)) void *pkg,
#else /* if !HAVE_IPV6 */
static int handle_ipv6(__attribute__((unused)) void *pkg,
@@
-837,7
+837,7
@@
const char *qtype_str(int t) {
case 32769:
return "DLV";
default:
case 32769:
return "DLV";
default:
- snprintf(buf, sizeof(buf), "#%i", t);
+ s
s
nprintf(buf, sizeof(buf), "#%i", t);
return buf;
} /* switch (t) */
}
return buf;
} /* switch (t) */
}
@@
-856,7
+856,7
@@
const char *opcode_str(int o) {
case 5:
return "Update";
default:
case 5:
return "Update";
default:
- snprintf(buf, sizeof(buf), "Opcode%d", o);
+ s
s
nprintf(buf, sizeof(buf), "Opcode%d", o);
return buf;
}
}
return buf;
}
}
@@
-904,7
+904,7
@@
const char *rcode_str(int rcode) {
case 18:
return "BADTIME";
default:
case 18:
return "BADTIME";
default:
- snprintf(buf, sizeof(buf), "RCode%i", rcode);
+ s
s
nprintf(buf, sizeof(buf), "RCode%i", rcode);
return buf;
}
} /* const char *rcode_str (int rcode) */
return buf;
}
} /* const char *rcode_str (int rcode) */