Fix warnings from ISO C90

Change-Id: I8c26849362986c7e692386d27d2a7518a56153b4
Reviewed-on: http://review.couchbase.org/29916
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>