[os_dbd] fix compiler warnings
[os_dbd] tighten function headers
[os_dbd] fix compiler warnings
[os_dbd] fix compiler warnings
[os_dbd] fix potential nullpointer dereference
[os_dbd] fix CID 28508
Merge pull request #332 from cgzones/os_dbd

os_dbd