add missing function prototype
remove compiler warning