diff options
author | 2018-04-19 12:13:23 +0200 | |
---|---|---|
committer | 2018-04-19 12:13:23 +0200 | |
commit | 5d13a15b1d0bd7d218100d204a84eaaaaeab932f (patch) | |
tree | 08d1ba916131ac128453713792cd8498b556de3a /src/journal/lookup3.c | |
parent | Merge pull request #8758 from keszybz/improved-slice-checks (diff) | |
download | systemd-5d13a15b1d0bd7d218100d204a84eaaaaeab932f.tar.gz systemd-5d13a15b1d0bd7d218100d204a84eaaaaeab932f.tar.bz2 systemd-5d13a15b1d0bd7d218100d204a84eaaaaeab932f.zip |
tree-wide: drop spurious newlines (#8764)
Double newlines (i.e. one empty lines) are great to structure code. But
let's avoid triple newlines (i.e. two empty lines), quadruple newlines,
quintuple newlines, …, that's just spurious whitespace.
It's an easy way to drop 121 lines of code, and keeps the coding style
of our sources a bit tigther.
Diffstat (limited to 'src/journal/lookup3.c')
-rw-r--r-- | src/journal/lookup3.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/journal/lookup3.c b/src/journal/lookup3.c index ec725ce46..ec241d2f3 100644 --- a/src/journal/lookup3.c +++ b/src/journal/lookup3.c @@ -214,7 +214,6 @@ uint32_t initval) /* the previous hash, or an arbitrary value */ return c; } - /* -------------------------------------------------------------------- hashword2() -- same as hashword(), but take two seeds and return two @@ -260,7 +259,6 @@ uint32_t *pb) /* IN: more seed OUT: secondary hash value */ *pc=c; *pb=b; } - /* ------------------------------------------------------------------------------- hashlittle() -- hash a variable-length key into a 32-bit value @@ -458,7 +456,6 @@ uint32_t jenkins_hashlittle( const void *key, size_t length, uint32_t initval) return c; } - /* * hashlittle2: return 2 32-bit hash values * @@ -644,8 +641,6 @@ void jenkins_hashlittle2( *pc=c; *pb=b; } - - /* * hashbig(): * This is the same as hashword() on big-endian machines. It is different @@ -775,7 +770,6 @@ uint32_t jenkins_hashbig( const void *key, size_t length, uint32_t initval) return c; } - #ifdef SELF_TEST /* used for timings */ @@ -967,7 +961,6 @@ void driver3() uint8_t buf[1]; uint32_t h,i,state[HASHSTATE]; - buf[0] = ~0; for (i=0; i<HASHSTATE; ++i) state[i] = 1; printf("These should all be different\n"); @@ -999,7 +992,6 @@ void driver5() printf("hash is %.8lx\n", c); /* cd628161 */ } - int main() { driver1(); /* test that the key is hashed: used for timings */ |