fix function signiture conforming to private.h

It can prevent compilation error when #define ENABLE_ADDRESS_CACHE 0

Signed-off-by: Guanglin Xu <mzguanglin@gmail.com>