Merge pull request #2751 from AiyionPrime/c-indentation

C indentation
This commit is contained in:
Jan-Niklas Burfeind 2023-01-15 15:53:27 +01:00 committed by GitHub
commit 0e5a5d31f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 1053 additions and 1057 deletions

View File

@ -442,7 +442,6 @@ uint32_t hashlittle( const void *key, size_t length, uint32_t initval)
case 0 : return c; case 0 : return c;
} }
} }
final(a,b,c); final(a,b,c);
return c; return c;
} }
@ -671,7 +670,7 @@ uint32_t hashbig( const void *key, size_t length, uint32_t initval)
* does it on word boundaries, so is OK with this. But VALGRIND will * does it on word boundaries, so is OK with this. But VALGRIND will
* still catch it and complain. The masking trick does make the hash * still catch it and complain. The masking trick does make the hash
* noticeably faster for short strings (like English words). * noticeably faster for short strings (like English words).
*/ * */
#ifndef VALGRIND #ifndef VALGRIND
switch(length) switch(length)
@ -802,11 +801,10 @@ void driver2()
{ {
for (j=0; j<8; ++j) /*------------------------ for each input bit, */ for (j=0; j<8; ++j) /*------------------------ for each input bit, */
{ {
for (m=1; m<8; ++m) /*------------ for several possible initvals, */ for (m=1; m<8; ++m) /*------------ for serveral possible initvals, */
{ {
for (l=0; l<HASHSTATE; ++l) for (l=0; l<HASHSTATE; ++l)
e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0); e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
/*---- check that every output bit is affected by that input bit */ /*---- check that every output bit is affected by that input bit */
for (k=0; k<MAXPAIR; k+=2) for (k=0; k<MAXPAIR; k+=2)
{ {

View File

@ -79,10 +79,8 @@ struct batadv_nlquery_opts {
* *
* Return: Return true when a attribute is missing, false otherwise * Return: Return true when a attribute is missing, false otherwise
*/ */
static inline bool static inline bool batadv_genl_missing_attrs(struct nlattr *attrs[],
batadv_genl_missing_attrs(struct nlattr *attrs[], const enum batadv_nl_attrs mandatory[], size_t num) {
const enum batadv_nl_attrs mandatory[], size_t num)
{
size_t i; size_t i;
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {