fix function signitures

1. cache.c : prevent compilation error when #define ENABLE_ADDRESS_CACHE 0
2. shm-snapshot-process-list.c : remove compiler warnings