From a57b0e966dd5d0567f1695de22458ad225b514b1 Mon Sep 17 00:00:00 2001 From: Davi Reis Date: Fri, 6 Jun 2014 11:52:06 -0300 Subject: [PATCH] Style fixes to https://sourceforge.net/p/cmph/git/merge-requests/3/. --- src/jenkins_hash.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/jenkins_hash.c b/src/jenkins_hash.c index e86e113..3514027 100644 --- a/src/jenkins_hash.c +++ b/src/jenkins_hash.c @@ -87,12 +87,10 @@ acceptable. Do NOT use for cryptographic purposes. jenkins_state_t *jenkins_state_new(cmph_uint32 size) //size of hash table { jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t)); - if (!state) return NULL; + if (!state) return NULL; DEBUGP("Initializing jenkins hash\n"); - if(size > 0) - state->seed = ((cmph_uint32)rand() % size); - else - state->seed = 0; + if (size > 0) state->seed = ((cmph_uint32)rand() % size); + else state->seed = 0; return state; } void jenkins_state_destroy(jenkins_state_t *state)