src: Fix a bunch of build warnings.
src: Fix a bunch of build warnings.

This fixes cmockery issue #17.

Signed-off-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@cryptomilk.org>

Odie/cmocka,jschmidlapp/cmocka,nuumio/cmocka,tyc/cmocka,akikoskinen/cmocka,Odie/cmocka,JonathonReinhart/cmocka,jschmidlapp/cmocka,aleksandr-vin/cmock,nuumio/cmocka,chadversary/cmocka,lsjostro/cmocka,jschmidlapp/cmocka,linuxmaniac/cmocka,jamesmunns/CMocka,dsch/cmocka,JonathonReinhart/cmocka,VladimirTyrin/cmocka,tyc/cmocka,jhrozek/cmocka,tyc/cmocka,wingyplus/cmocka,nuumio/cmocka,linuxmaniac/cmocka,chadversary/cmocka,Odie/cmocka,aleksandr-vin/cmock,clibs/cmocka,clibs/cmocka,VladimirTyrin/cmocka,jhrozek/cmocka,jhrozek/cmocka,dsch/cmocka,lsjostro/cmocka,jamesmunns/CMocka,wingyplus/cmocka