2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Reformat using the new rules

This commit is contained in:
Ondřej Surý
2020-02-14 08:14:03 +01:00
parent 654927c871
commit 5777c44ad0
283 changed files with 2991 additions and 2545 deletions

View File

@@ -16,13 +16,12 @@
* See https://scan.coverity.com/models
*/
#define FLARG , const char *file, unsigned int line
#define FLARG , const char *file, unsigned int line
#define FLARG_PASS , file, line
int condition;
void *
isc__mem_get(void *mem, unsigned int size FLARG)
{
isc__mem_get(void *mem, unsigned int size FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -34,8 +33,7 @@ isc__mem_get(void *mem, unsigned int size FLARG)
}
void
isc__mem_put(void *mem, void *ptr, unsigned int size FLARG)
{
isc__mem_put(void *mem, void *ptr, unsigned int size FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -43,8 +41,7 @@ isc__mem_put(void *mem, void *ptr, unsigned int size FLARG)
}
void
isc__mem_putanddetach(void *mem, void *ptr, unsigned int size FLARG)
{
isc__mem_putanddetach(void *mem, void *ptr, unsigned int size FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -52,8 +49,7 @@ isc__mem_putanddetach(void *mem, void *ptr, unsigned int size FLARG)
}
void *
isc__mem_allocate(void *mem, unsigned int size FLARG)
{
isc__mem_allocate(void *mem, unsigned int size FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -68,9 +64,8 @@ void *
memcpy(void *s1, const void *s2, size_t n);
void *
isc__mem_reallocate(void *mem, void *ptr, size_t size FLARG)
{
char * p = (char *)0;
isc__mem_reallocate(void *mem, void *ptr, size_t size FLARG) {
char *p = (char *)0;
size_t l;
if (!mem) {
@@ -90,8 +85,7 @@ isc__mem_reallocate(void *mem, void *ptr, size_t size FLARG)
}
void
isc__mem_free(void *mem, void *ptr FLARG)
{
isc__mem_free(void *mem, void *ptr FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -102,8 +96,7 @@ unsigned int
strlen(const char *);
void *
isc__mem_strdup(void *mem, char *s FLARG)
{
isc__mem_strdup(void *mem, char *s FLARG) {
void *d;
if (!mem) {
__coverity_panic__();
@@ -117,8 +110,7 @@ isc__mem_strdup(void *mem, char *s FLARG)
}
void *
isc__mempool_get(void *mem FLARG)
{
isc__mempool_get(void *mem FLARG) {
unsigned int size;
if (!mem) {
__coverity_panic__();
@@ -130,8 +122,7 @@ isc__mempool_get(void *mem FLARG)
}
void
isc__mempool_put(void *mem, void *ptr FLARG)
{
isc__mempool_put(void *mem, void *ptr FLARG) {
if (!mem) {
__coverity_panic__();
}
@@ -146,8 +137,7 @@ isc__mempool_put(void *mem, void *ptr FLARG)
void
_assert_true(const LargestIntegralType result, const char *const expression,
const char *const file, const int line)
{
const char *const file, const int line) {
if (!result) {
__coverity_panic__();
}