compilation error fix. ssize_t -> int