summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-10-11 19:28:56 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-10-11 19:28:56 -0400
commit15e6af9a3e3cadf6d93817777a9d6043eade8612 (patch)
tree571de71864c150a20a11e289eac94bf65c524fa6
parent5cedb357dfa26dd1c2b2fdf1f3698534208e1222 (diff)
downloadmongo-15e6af9a3e3cadf6d93817777a9d6043eade8612.tar.gz
Revert "Minor code shuffling, makes both clang and lint happier."
This reverts commit 5cedb357dfa26dd1c2b2fdf1f3698534208e1222.
-rw-r--r--src/support/cksum.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/support/cksum.c b/src/support/cksum.c
index 7220df86fb0..a4b01f89c51 100644
--- a/src/support/cksum.c
+++ b/src/support/cksum.c
@@ -1256,7 +1256,8 @@ __wt_cksum_hw(const void *chunk, size_t len)
* a fast software algorithm. __wt_cksum() provides a common entry point that
* indirects to one of these two methods.
*/
-static uint32_t (*__wt_cksum_func)(const void *chunk, size_t len);
+static uint32_t
+ (*__wt_cksum_func)(const void *chunk, size_t len) = __wt_cksum_sw;
/*
* __wt_cksum --
@@ -1276,8 +1277,6 @@ __wt_cksum(const void *chunk, size_t len)
void
__wt_cksum_init(void)
{
- __wt_cksum_func = __wt_cksum_sw;
-
#if (defined(__amd64) || defined(__x86_64))
unsigned int eax, ebx, ecx, edx;