Don't mix decl and code (non-c89)

Change-Id: Ibe27e31f31a8fafb1075e9f22e9aefcb8794d318
Reviewed-on: http://review.couchbase.org/38236
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>